CVE-2025-22134: neovim Heap-based Buffer Overflow
Vulnerability summary
CVE-2025-22134 is a medium (CVSS 5.5) Heap-based Buffer Overflow vulnerability in neovim. EPSS estimates a 0.37% chance of exploitation in the next 30 days, higher than 29.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 4 · Related 4Timeline
- 13-01-2025PublishedVulnerability first disclosed.
- 14-03-2025Last modifiedVulnerability information updated.
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
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA4.2MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:LDiffers
- OSV · AlpineEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.37%
Chance of exploitation in the next 30 days
Percentile
30%
Versus all other CVEs
30-day change
0.00 pp
From 0.37% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine1 product
- vim< 9.1.1003-r0
Debian1 product
- vimAll versions (No fix recorded) | < 2:9.1.1113-1
Mageia1 product
- vim< 9.1.1012-1.mga9
Neovim1 product
- neovim≤ 0.10.4
Netapp1 product
Ubuntu1 product
- vimAll versions (No fix recorded) | < 2:8.1.2269-1ubuntu5.30 | < 2:8.2.3995-1ubuntu2.22 | < 2:9.1.0016-1ubuntu7.6
Vim1 product
- vim< v9.1.1003 | ≤ 9.1.1003
7 vendors · 7 products
References
13 links- security.netapp.com/advisory/ntap-20250314-0004/Third Party Advisory