5.5

CVE-2025-22134: heap-buffer-overflow with visual mode in Vim < 9.1.1003

Analyzed
AliasesALPINE-CVE-2025-22134MGASA-2025-0014UBUNTU-CVE-2025-22134
Published 13-01-2025Last modified 14-03-2025

Vulnerability summary

CVE-2025-22134 is a medium (CVSS 5.5) Heap-based Buffer Overflow vulnerability in neovim. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 33.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.2, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.38%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 13-01-2025
    PublishedVulnerability first disclosed.
  2. 14-03-2025
    Last modifiedVulnerability information updated.

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 metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.38%

Chance of exploitation in the next 30 days

Percentile

34%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.38% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • vim< 9.1.1003-r0
Debian1 product
  • vimAll versions (No fix recorded) | < 2:9.1.1113-1
Mageia1 product
  • vim< 9.1.1012-1.mga9
Neovim1 product
Netapp1 product
Ubuntu1 product
  • vimAll versions (No fix recorded) | < 2:8.1.2269-1ubuntu5.30 | < 2:8.2.3995-1ubuntu2.22 | < 2:9.1.0016-1ubuntu7.6
Vim1 product
  • vim< v9.1.1003 | ≤ 9.1.1003

7 vendors · 7 products

References

13 links
Show all 13 references