cve.bz

CVE-2025-26603 Use After Free

4.2 mediumEPSS 0.2%Fix available

Medium (4.2). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
Vim is a greatly improved version of the good old UNIX editor Vi. Vim allows to redirect screen messages using the `:redir` ex command to register, variables and files. It also allows to show the contents of registers using the `:registers` or `:display` ex command. When redirecting the output of `:display` to a register, Vim will free the register content before storing the new content in the register. Now when redirecting the `:display` command to a register that is being displayed, Vim will free the content while shortly afterwards trying to access it, which leads to a use-after-free. Vim pre 9.1.1115 checks in the ex_display() function, that it does not try to redirect to a register while displaying this register at the same time. However this check is not complete, and so Vim does not check the `+` and `*` registers (which typically donate the X11/clipboard registers, and when a clipboard connection is not possible will fall back to use register 0 instead. In Patch 9.1.1115 Vim will therefore skip outputting to register zero when trying to redirect to the clipboard registers `*` or `+`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Severity

CVSS 3.1

4.2 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 15th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-02-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-26603 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-26603?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-26603?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-26603 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vim:vimbefore 9.1.1115

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12vimno fix listedDEBIAN-CVE-2025-26603
Debian13, 14vim2:9.1.1230-1DEBIAN-CVE-2025-26603
Ubuntu20.04:LTSvim2:8.1.2269-1ubuntu5.32UBUNTU-CVE-2025-26603 USN-7419-1
Ubuntu22.04:LTSvim2:8.2.3995-1ubuntu2.24UBUNTU-CVE-2025-26603 USN-7419-1
Ubuntu24.04:LTSvim2:9.1.0016-1ubuntu7.8UBUNTU-CVE-2025-26603 USN-7419-1
UbuntuPro:14.04:LTSvim2:7.4.052-1ubuntu3.1+esm21UBUNTU-CVE-2025-26603 USN-7419-1
UbuntuPro:16.04:LTSvim2:7.4.1689-3ubuntu1.5+esm27UBUNTU-CVE-2025-26603 USN-7419-1
UbuntuPro:18.04:LTSvim2:8.0.1453-1ubuntu1.13+esm12UBUNTU-CVE-2025-26603 USN-7419-1
Alpinev3.22, v3.23, v3.24vim9.1.1164-r0ALPINE-CVE-2025-26603
Azure Linux2vim9.1.0791-4AZL-56913
Azure Linux3vim9.1.0791-4AZL-56962
Alpaquita23, streamvim9.1.1164-r0BELL-CVE-2025-26603

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw is marked as Low Impact because it requires a user to run an untrusted/malicious Vim command. Untrusted Vim scripts should never be run as they can already execute arbitrary shell commands. The security issue raised by this flaw would be no worse than what is already possible when running untrusted Vim scripts.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10vimFix deferred
Red Hat Enterprise Linux 6vimOut of support scope
Red Hat Enterprise Linux 7vimOut of support scope
Red Hat Enterprise Linux 8vimOut of support scope
Red Hat Enterprise Linux 9vimFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Under investigation
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-26603.

References

Check your stackJSON