CVE-2025-22134
mediumpriority · track · 22EPSS 0.004 · 31 %ileDEEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (24)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-0049vim: Schwachstelle ermöglicht CodeausführungDeutsch2025-01-12csaf · cert_bundDE
Ein lokaler Angreifer kann eine Schwachstelle in vim ausnutzen, um beliebigen Programmcode auszuführen.
- WID-SEC-W-2025-1439Dell Secure Connect Gateway: Mehrere Schwachstellen ermöglichen nicht spezifizierten AngriffDeutsch2025-06-30csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Dell Secure Connect Gateway ausnutzen, um einen nicht näher spezifizierten Angriff durchzuführen.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2025/01/11/1cnnvd
- https://access.redhat.com/security/cve/cve-2025-22134cnnvd
- https://github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80eadcnnvd
- https://github.com/vim/vim/releases/tag/v9.1.1012Patchcnnvd
- https://github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8cnnvd
- https://vigilance.fr/vulnerability/Vim-buffer-overflow-via-Visual-Mode-All-Command-46146cnnvd
- https://github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80eadenisa_euvd
- https://github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan