Buffer overflow in Neovim
CVE-2025-22134
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
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.2 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS: 0.004 (29.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 29th percentile — 29.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Neovim
- NetApp Bootstrap OS
- NetApp Hci Compute Node
- Vim — versions < v9.1.1003
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8 (Vendor Advisory)
- github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80ead (Patch)
- af854a3a-2127-422b-91ae-364da2661108 (Mailing List, Third Party Advisory)
- af854a3a-2127-422b-91ae-364da2661108 (Third Party Advisory)
Frequently asked questions
- What is CVE-2025-22134?
- CVE-2025-22134 is a medium-severity vulnerability in Neovim, classified under Heap-based Buffer Overflow. CVSS score: 4.2/10. Published 2025-01-13.
- How severe is CVE-2025-22134?
- Medium severity. CVSS v3 base score is 4.2 out of 10.
- Is CVE-2025-22134 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.