Skip to main content
CVE-2025-22134VulnerabilityPublished Updated

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

0
Compare

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

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Jan 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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).

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=nobleOther threatsAffected
  • <2:9.1.0016-1ubuntu7.6
Fixed in
  • 2:9.1.0016-1ubuntu7.6
Ubuntu 22.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=jammyOther threatsAffected
  • <2:8.2.3995-1ubuntu2.22
Fixed in
  • 2:8.2.3995-1ubuntu2.22
Ubuntu 20.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=focalOther threatsAffected
  • <2:8.1.2269-1ubuntu5.30
Fixed in
  • 2:8.1.2269-1ubuntu5.30
Ubuntu Pro 18.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra/bionicOther threatsAffected
  • 2:8.0.0197-4ubuntu5 – 2:8.0.1453-1ubuntu1.13+esm24
40 affected builds
Fixed in–
Ubuntu Pro 16.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • 2:7.4.712-2ubuntu4 – 2:7.4.1689-3ubuntu1.5+esm39
48 affected builds
Fixed in–
Ubuntu Pro 14.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra-legacy/trustyOther threatsAffected
  • 2:7.4.000-1ubuntu2 – 2:7.4.052-1ubuntu3.1+esm33
37 affected builds
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

Community reviews

Loading reviews…