CVE-2025-26603 Details
Description
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.
A heap use-after-free vulnerability has been identified in Vim versions prior to 9.1.1115. The issue arises in the 'str_to_reg()' function when the ':display' command is redirected to a register that is currently being displayed. Vim frees the register's content before the new content is stored, leading to a use-after-free condition. Although Vim normally checks to avoid this situation, the check is incomplete and does not account for the '+' and '*' registers, which are used for X11 clipboard operations. In Vim patch 9.1.1115, this issue is addressed by preventing output to register zero when redirecting to the clipboard registers, ensuring proper handling and eliminating the use-after-free vulnerability.
Users are advised to upgrade to Vim version 9.1.1115 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://security.netapp.com/advisory/ntap-20250306-0003/ | CVE | Third Party Advisory |
| https://github.com/vim/vim/commit/c0f0e2380e5954f4a52a131bf6b8 | [email protected] | Patch |
| https://github.com/vim/vim/security/advisories/GHSA-63p5-mwg2-787v | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vim vim | < 9.1.1115 |
CPE
Remediation
| |
| netapp hci compute node | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 18, 2025 | Initial Analysis | [email protected] |
| Mar 7, 2025 | CVE Modified | CVE |
| Feb 18, 2025 | New CVE Received | [email protected] |