PT-2024-2722 · Vim+7 · Vim+7
Henices
·
Published
2024-02-05
·
Updated
2026-03-29
·
CVE-2024-22667
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Vim versions prior to 9.0.2142
Description
The issue is related to a stack-based buffer overflow in the
did set langmap() function of the Vim text editor. This overflow occurs because did set langmap in map.c calls sprintf to write to the error buffer that is passed down to the option callback functions. Exploitation of this issue may allow an attacker to execute arbitrary code.Recommendations
For versions prior to 9.0.2142, update to version 9.0.2142 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
did set langmap() function in map.c until a patch is applied. Additionally, be cautious when using the sprintf function to write to the error buffer, as it may lead to a stack-based buffer overflow.Exploit
Fix
Memory Corruption
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Debian
Linuxmint
Red Os
Suse
Ubuntu
Vim