CVE-2025-22134
published 2025-01-13CVE-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…
PriorityP423medium5.5CVSS 3.1
AVLACLPRNUIRSUCNINAH
EPSS
0.37%
28.5th percentile
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
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:9.1.1113-1 (forky) | vim 2:9.1.1113-1 (forky) |
| neovim | neovim | <= 0.10.4 | — |
| vim | vim | < v9.1.1003 | v9.1.1003 |
| vim | vim | <= 9.1.1003 | — |
| vim | vim | >= 0 < 2:9.1.1113-1 | 2:9.1.1113-1 |
| vim | vim | >= 0 < 2:9.1.1113-1 | 2:9.1.1113-1 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian4.2LOW
vendor_redhat4.2MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Vim vulnerability
vendor_ubuntu·2025-01-21
CVE-2025-22134 Vim vulnerability
Title: Vim vulnerability
Summary: Vim could be made to crash or run programs if it received specially crafted
input.
It was discovered that Vim incorrectly handled memory when closing buffers
with the visual mode active. An attacker could possibly use this issue to
cause a denial of service or execute arbitrary code.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
vim: heap-buffer-overflow with visual mode in Vim < 9.1.1003
vendor_redhat·2025-01-13·CVSS 4.2
CVE-2025-22134 [MEDIUM] CWE-122 vim: heap-buffer-overflow with visual mode in Vim < 9.1.1003
vim: heap-buffer-overflow with visual mode in Vim < 9.1.1003
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.100
Debian
CVE-2025-22134: vim - When switching to other buffers using the :all command and visual mode still bei...
vendor_debian·2025·CVSS 4.2
CVE-2025-22134 [MEDIUM] CVE-2025-22134: vim - When switching to other buffers using the :all command and visual mode still bei...
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
Scope: local
bookworm: open
bullseye: open
forky: resolved (
OSV
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
osv·2025-01-13·CVSS 5.5
CVE-2025-22134 [MEDIUM] 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
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
No detection rules found.
No public exploits indexed.
2025-01-13
Published