Vim before 9.0.2142 has a stack-based buffer overflow because did_set_langmap in map.c calls sprintf to write to the
Source GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 9.0.2142 : patch affected systems soon.
Data as of 4 Nov 2026, 17:50 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 7.8 |
|---|
- Patch
- Available – fixed in 9.0.2142
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 5 Feb 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Nov 2026.
What to do
AI-suggested
A fix is available in Vim version 9.0.2142. Users should upgrade to this version or later to remediate the vulnerability. Since this is not a cloud service, manual patching is required. No vendor advisory content was provided to indicate alternative mitigations or if the issue is already mitigated.
Description
Vim versions before 9.0.2142 contain a stack-based buffer overflow vulnerability in the did_set_langmap function within map.c. This occurs because the function uses sprintf to write to an error buffer, which is then passed to option callback functions. The vulnerability has a high severity rating with a CVSS score of 7.8.
References
- nvd.nist.gov/vuln/detail/CVE-2024-22667 (opens in a new tab)
- github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47 (opens in a new tab)
- gist.githubusercontent.com/henices/2467e7f22dcc2aa97a2453e197b55a0c/raw/7b54bccc9a129c604fb139266f4497ab7aaa94c7/gistfile1.txt (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00023.html (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UI44Y4LJLG34D4HNB6NTPLUPZREHAEL7 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UIQLVUSYHDN3644K6EFDI7PRZOTIKXM3 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UI44Y4LJLG34D4HNB6NTPLUPZREHAEL7 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIQLVUSYHDN3644K6EFDI7PRZOTIKXM3 (opens in a new tab)
- security.netapp.com/advisory/ntap-20240223-0008 (opens in a new tab)