VYPR
Unrated severityNVD Advisory· Published Jan 4, 2023· Updated Apr 9, 2025

Heap-based Buffer Overflow in vim/vim

CVE-2023-0051

Description

Heap-based buffer overflow in Vim prior to 9.0.1144 allows out-of-bounds write via crafted input, enabling potential code execution.

AI Insight

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

Heap-based buffer overflow in Vim prior to 9.0.1144 allows out-of-bounds write via crafted input, enabling potential code execution.

Vulnerability

A heap-based buffer overflow exists in Vim versions prior to 9.0.1144, specifically in the msg_puts_printf function. The issue arises from an improper length check when handling strings, allowing a write beyond the allocated heap buffer [2].

Exploitation

An attacker can exploit this vulnerability by providing a specially crafted input file to Vim. No authentication is required; the user only needs to open the malicious file with Vim or trigger the relevant code path. The bug is reachable through standard editing operations involving multibyte expressions or similar features [2].

Impact

Successful exploitation can lead to heap corruption, potentially causing a denial of service or arbitrary code execution in the context of the Vim process. This could allow an attacker to execute commands or access sensitive data on the affected system.

Mitigation

The vulnerability is fixed in Vim version 9.0.1144 [2]. Gentoo recommends upgrading to Vim 9.0.1157 or later [3]. No other workaround is available at this time.

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

18

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.