# CVE-2024-22667

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-02-05 · Modified: 2025-11-04
- Aliases: MGASA-2024-0040, UBUNTU-CVE-2024-22667, USN-6698-1, DEBIAN-CVE-2024-22667
- Record: https://cvemate.com/vulnerability/CVE-2024-22667 · JSON: https://cvemate.com/vulnerability/CVE-2024-22667/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.568%, percentile 48.494%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian vim (Debian): \< 2:9.0.1378-2+deb12u1 \| \< 2:9.0.2189-1
- ubuntu vim (Ubuntu): \< 2:7.4.052-1ubuntu3.1+esm16 \| \< 2:7.4.1689-3ubuntu1.5+esm23 \| \< 2:8.0.1453-1ubuntu1.13+esm8 \| \< 2:8.1.2269-1ubuntu5.22 \| \< 2:8.2.3995-1ubuntu2.16
- fedoraproject fedora: 38 \| 39
- mageia vim (Mageia): \< 9.1.111-1.mga9
- vim vim: \< 9.0.2142

## References

- <https://github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47>
- <https://gist.githubusercontent.com/henices/2467e7f22dcc2aa97a2453e197b55a0c/raw/7b54bccc9a129c604fb139266f4497ab7aaa94c7/gistfile1.txt>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UI44Y4LJLG34D4HNB6NTPLUPZREHAEL7/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UIQLVUSYHDN3644K6EFDI7PRZOTIKXM3/>
- <https://security.netapp.com/advisory/ntap-20240223-0008/>
- <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/>
- <https://advisories.mageia.org/MGASA-2024-0040.html>
- <https://bugs.mageia.org/show_bug.cgi?id=32850>
- <https://ubuntu.com/security/CVE-2024-22667>
- <https://ubuntu.com/security/notices/USN-6698-1>
- <https://www.cve.org/CVERecord?id=CVE-2024-22667>
- <https://security-tracker.debian.org/tracker/CVE-2024-22667>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-22667>

---

Data as of 2026-12-05T04:38:51.312Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
