Skip to content
Fencer Vulns
high 7.8

CVE-2024-22667 json

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 p…

published 2024-02-05 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-20200

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 47%
public exploits
0
none known

Summary

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.

Patch / fix

  • vim vim 9.0.2142
  • vim Debian 12 2:9.0.1378-2+deb12u1
  • vim Debian 14, Debian 13 2:9.0.2189-1

debian advisories DEBIAN-CVE-2024-22667

  • vim Ubuntu 20.04 LTS 2:8.1.2269-1ubuntu5.22
  • vim Ubuntu 22.04 LTS 2:8.2.3995-1ubuntu2.16
  • vim Ubuntu Pro 14.04 LTS 2:7.4.052-1ubuntu3.1+esm16
  • vim Ubuntu Pro 16.04 LTS 2:7.4.1689-3ubuntu1.5+esm23
  • vim Ubuntu Pro 18.04 LTS 2:8.0.1453-1ubuntu1.13+esm8

ubuntu advisories UBUNTU-CVE-2024-22667

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • vim SLE Module for Desktop Applications 15 SP5, SLE Module for Basesystem 15 SP5, SLE Micro 5.5 +1 more 9.1.0111-150500.20.9.1
  • vim SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES for SAP 15 SP2 +16 more 9.1.0111-150000.5.60.1
  • vim SLES for SAP 12 SP5, SLES 12 SP5 9.1.0111-17.29.1

suse advisories SUSE-SU-2024:1287-1SUSE-SU-2024:0871-1SUSE-SU-2024:0783-1

  • vim CBL-Mariner 2.0 9.0.2121-2

azure linux advisories AZL-34281

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-22667 updated cvss 8.4

vim: Stack buffer over flow in did_set_langmap function in map.c

  • Red Hat Enterprise Linux 6 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 7 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 9 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem
    affected: no fix available “Fix deferred”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel9
    under investigation

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
18 mo ago

Exploit prediction

0.56% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • gist.githubusercontent.com https://gist.githubusercontent.com/henices/2467e7f22dcc2aa97a2453e197b55a0c/raw/7b54bccc9a129c604fb139266f4497ab7aaa94c7/gistfile1.txt referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.