# CVE-2024-22667: Vim before 9.0.2142 has a stack-based buffer overflow because didsetlangmap in map.c calls sprintf to write to the error buffer that is pas…

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-05T00:00:00.000Z
- Modified: 2026-06-17T07:11:40.250Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- vim vim: before 9.0.2142
- fedoraproject fedora: 38; 39

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://gist.githubusercontent.com/henices/2467e7f22dcc2aa97a2453e197b55a0c/raw/7b54bccc9a129c604fb139266f4497ab7aaa94c7/gistfile1.txt> (exploit, third-party-advisory)
- <https://github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47> (patch)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UI44Y4LJLG34D4HNB6NTPLUPZREHAEL7/> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UIQLVUSYHDN3644K6EFDI7PRZOTIKXM3/> (third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240223-0008/> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIQLVUSYHDN3644K6EFDI7PRZOTIKXM3/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UI44Y4LJLG34D4HNB6NTPLUPZREHAEL7/>

## Sources

- CVE List: [CVE-2024-22667](https://www.cve.org/CVERecord?id=CVE-2024-22667), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2024-22667](https://nvd.nist.gov/vuln/detail/CVE-2024-22667), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-22667 · Whole record: https://cve.day/CVE-2024-22667.json · Rebuilt by cve.day 2026-11-25T22:58:36.549Z
