VYPR
Unrated severityNVD Advisory· Published Jan 13, 2025· Updated Mar 14, 2025

heap-buffer-overflow with visual mode in Vim < 9.1.1003

CVE-2025-22134

Description

Heap-buffer-overflow in Vim <9.1.1003 when using :all command with active visual mode leads to potential memory corruption.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Heap-buffer-overflow in Vim <9.1.1003 when using :all command with active visual mode leads to potential memory corruption.

Vulnerability

In Vim versions before 9.1.1003 (including patch 9.1.0938 and earlier), a heap-buffer overflow exists when executing the :all command while visual mode is active. The editor fails to properly terminate visual mode before switching buffers, causing it to access memory beyond the end of a line in the target buffer. The issue was reported by researcher gandalf4a and addressed in patch v9.1.1003 [1][2].

Exploitation

An attacker needs the user to have visual mode enabled and then execute the :all ex command. This can be triggered via a malicious script or sourced file. The provided proof-of-concept demonstrates reproduction with the command vim -u NONE -i NONE -n -m -X -Z -e -s -S ./vim_hbo_1272 -c ':qa!'. No authentication is required beyond local access to Vim [1].

Impact

Successful exploitation results in a heap-buffer overflow, which can lead to memory corruption, denial of service, or potentially arbitrary code execution. The severity is rated Medium because the user must have visual mode active when running :all [1].

Mitigation

The vulnerability is fixed in Vim patch v9.1.1003, released on January 11, 2025. Users should upgrade to at least this version. No workarounds have been provided. The issue is not currently listed in CISA's Known Exploited Vulnerabilities catalog [1][2].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

12

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.