Buffer overflow in Vim
CVE-2024-22667
Vim before 9.0.2142 has a stack-based buffer overflow because did_set_langmap in map.c calls sprintf to write to the error buffer that is passed down to the option callback functions.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.006, 47.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Vim
- Fedoraproject Fedora — versions 38, 39
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (fkie-cad/nvd-json-data-feeds, runwhen-contrib/helm-charts, w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47 (Patch)
- gist.githubusercontent.com/henices/2467e7f22dcc2aa97a2453e197b55a0c/raw/7b54bcc… (Exploit, Third Party Advisory)
- FEDORA-2024-12513b5cee (vendor-advisory, Third Party Advisory)
- FEDORA-2024-1c85d5b179 (vendor-advisory, Third Party Advisory)
- security.netapp.com/advisory/ntap-20240223-0008/ (Third Party Advisory)
- lists.debian.org/debian-lts-announce/2025/03/msg00023.html
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…