CVE-2025-22134 Details
Description
When switching to other buffers using the :all command and visual mode still being active, this may cause a heap-buffer overflow, because Vim does not properly end visual mode and therefore may try to access beyond the end of a line in a buffer. In Patch 9.1.1003 Vim will correctly reset the visual mode before opening other windows and buffers and therefore fix this bug. In addition it does verify that it won't try to access a position if the position is greater than the corresponding buffer line. Impact is medium since the user must have switched on visual mode when executing the :all ex command. The Vim project would like to thank github user gandalf4a for reporting this issue. The issue has been fixed as of Vim patch v9.1.1003
A heap-buffer overflow vulnerability has been identified in Vim versions prior to 9.1.1003. The issue arises when visual mode is active and the ':all' command is executed, causing Vim to improperly manage the visual selection. This mismanagement can lead to accessing memory beyond the intended buffer line, creating a heap-buffer overflow. The vulnerability requires user interaction, as visual mode must be enabled when the ':all' command is used.
Users can upgrade to Vim version 9.1.1003 or later, where this vulnerability has been fixed.
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 Jan 14, 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-20250314-0004/ | CVE | Third Party Advisory |
| http://www.openwall.com/lists/oss-security/2025/01/11/1 | CVE | Mailing ListThird Party Advisory |
| https://github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80ead | [email protected] | Patch |
| https://github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| neovim neovim | <= 0.10.4 |
CPE
Remediation
| |
| vim vim | <= 9.1.1003 |
CPE
Remediation
| |
| netapp bootstrap os | All versions |
CPE
Remediation
| |
| netapp hci compute node | All versions |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 9, 2026 | Modified Analysis | [email protected] |
| Aug 14, 2025 | Initial Analysis | [email protected] |
| Mar 14, 2025 | CVE Modified | CVE |
| Jan 13, 2025 | New CVE Received | [email protected] |
| Jan 13, 2025 | CVE Modified | CVE |