CVE-2025-26603
CVE-2025-26603 — heap-use-after-free in function str_to_reg in vim/vim
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…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
4.2
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 4.2 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-416
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /clipboard.
References
3 on the record
- github.com/vim/vim/security/advisories/GHSA-63p5-mwg2-787v
x_refsource_CONFIRM
- github.com/vim/vim/commit/c0f0e2380e5954f4a52a131bf6b8
x_refsource_MISC
- security.netapp.com/advisory/ntap-20250306-0003/
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-24085 Apple Multiple Products Use-After-Free VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2021-22893 Ivanti Pulse Connect Secure Use-After-Free VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2014-8439 Adobe Flash Player Dereferenced Pointer VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2014-1776 Microsoft Internet Explorer Memory Corruption VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2014-0496 Adobe Reader and Acrobat Use-After-Free VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2026-109618 RCE via OOM corruptionCVSS 9.8 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.