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
Affects vimSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 2:8.1.2269-1ubuntu5.30 : update vim when convenient.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2:8.1.2269-1ubuntu5.30, 2:8.2.3995-1ubuntu2.22, 2:9.1.0016-1ubuntu7.6
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 Jan 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade the Ubuntu vim to 2:8.1.2269-1ubuntu5.30 (package) or 2:8.2.3995-1ubuntu2.22 (package) or 2:9.1.0016-1ubuntu7.6 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 20.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in– |
Ubuntu Pro 16.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra-legacy/xenialOther threats | Affected
| Fixed in– |
Ubuntu Pro 14.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra-legacy/trustyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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
References
- ubuntu.com/security/CVE-2025-22134 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-22134 (opens in a new tab)
- github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8 (opens in a new tab)
- github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80ead (opens in a new tab)
- openwall.com/lists/oss-security/2025/01/11/1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7220-1 (opens in a new tab)