VYPR
Unrated severityNVD Advisory· Published Jun 7, 2022· Updated Nov 3, 2025

Out-of-bounds Write in vim/vim

CVE-2022-2000

Description

Out-of-bounds write in Vim's command parsing allows memory corruption via crafted input.

AI Insight

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

Out-of-bounds write in Vim's command parsing allows memory corruption via crafted input.

Vulnerability

The vulnerability is an out-of-bounds write in the append_command function in Vim's source code. The function appends command text to the global buffer IObuff using STRCAT without checking whether there is sufficient space. This can lead to writing beyond the end of the buffer. The issue affects Vim versions prior to patch 8.2.5063 [4].

Exploitation

An attacker can trigger the overflow by providing a long error message or command, for example by opening a malicious file or executing a crafted command sequence. In the test case provided in the fix [4], a long sequence of characters is used to reproduce the issue. Access to a system where Vim processes untrusted input is required; this could be local or remote if Vim is used in a context like SSH or automated processing.

Impact

Successful exploitation results in memory corruption, potentially allowing arbitrary code execution or a denial of service. The attacker may be able to overwrite adjacent memory, leading to control over program execution. The vulnerability is classified as an out-of-bounds write with high severity.

Mitigation

The issue is fixed in Vim patch 8.2.5063, available via the commit 44a3f3353e0407e9fffee138125a6927d1c9e7e5 [4]. Users should update to a patched version. No workaround is available. The CVE is not listed in the known exploited vulnerabilities catalog.

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

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

13

News mentions

0

No linked articles in our index yet.