Vulnerability · Published Feb 5, 2024 · Assigned by mitre
CVE-2024-22667
High 7.8
In plain English
A high-severity out-of-bounds write in the vim package (Debian). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.6%top 53.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | vim | 2:9.0.1378-2+deb12u1 | DEBIAN-CVE-2024-22667 |
| Debian:13 | vim | 2:9.0.2189-1 | DEBIAN-CVE-2024-22667 |
| Debian:14 | vim | 2:9.0.2189-1 | DEBIAN-CVE-2024-22667 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2.16 | USN-6698-1 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2.16 | UBUNTU-CVE-2024-22667 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47
- https://gist.githubusercontent.com/henices/2467e7f22dcc2aa97a2453e197b55a0c/raw/7b54bccc9a129c604fb139266f4497ab7aaa94c7/gistfile1.txt
- FEDORA-2024-12513b5cee vendor-advisory
- FEDORA-2024-1c85d5b179 vendor-advisory
- 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/