Out-of-bounds Write in vim/vim
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
3Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
13- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4JJNUS4AEVYSEJMCK6JZB57QHD5V2G4O/mitrevendor-advisory
- security.gentoo.org/glsa/202208-32mitrevendor-advisory
- security.gentoo.org/glsa/202305-16mitrevendor-advisory
- seclists.org/fulldisclosure/2022/Oct/28mitremailing-list
- seclists.org/fulldisclosure/2022/Oct/41mitremailing-list
- seclists.org/fulldisclosure/2022/Oct/43mitremailing-list
- seclists.org/fulldisclosure/2022/Oct/45mitremailing-list
- lists.debian.org/debian-lts-announce/2022/11/msg00032.htmlmitremailing-list
- github.com/vim/vim/commit/44a3f3353e0407e9fffee138125a6927d1c9e7e5mitre
- huntr.dev/bounties/f61a64e2-d163-461b-a77e-46ab38e021f0mitre
- support.apple.com/kb/HT213443mitre
- support.apple.com/kb/HT213444mitre
- support.apple.com/kb/HT213488mitre
News mentions
0No linked articles in our index yet.