PT-2024-2722

CVE-2024-22667

·

Published

2024-02-05

·

Updated

2026-10-16

Description by

CVSS 3.1
7.8
High
MetricsAV: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.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Weakness enumeration
Related identifiers
ALT-PU-2024-2682
ALT-PU-2024-3084
ALT-PU-2024-7203
AZL-34281
CLSA-2026-1787304699
CLSA-2026-1792153017
DLA-4097-1
MGASA-2024-0040
OPENSUSE-SU-2024_1287-1
ROSA-SA-2025-2610
SUSE-SU-2024:0783-1
SUSE-SU-2024:0871-1
SUSE-SU-2024:1287-1
USN-6698-1
Found an issue in the description? Have something to add? Feel free to write us 👾