Medium severity · published Jan 13, 2025
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…
5.5
CVSS
0.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 31% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BO
Bootstrap OS · Netapp
All versions, or not specified · source: NVD
NE
Neovim · Neovim
through 0.10.4 · source: NVD
VI
Vim · Vim
through 9.1.1003 · source: NVD
Affected product
NE
Neovim
Neovim
More from Neovim
8.6
CVE-2019-12735
getchar.c in Vim before 8.1.1365 and Neovim before 0.3.6 allows remote attackers to execute arbitrary OS commands via the :source! command in a modeline, as demonstrated by…
7.8
CVE-2023-5535
Use After Free in GitHub repository vim/vim prior to v9.0.2010
7.8
CVE-2023-4781
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873
7.8
CVE-2023-4752
Use After Free in GitHub repository vim/vim prior to 9.0.1858
7.8
CVE-2023-4750
Use After Free in GitHub repository vim/vim prior to 9.0.1857