Skip to main content
CVE-2024-22667VulnerabilityPublished Updated

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

Affects vimSource GCVE Database

0
Compare
Authoritative record:CVE-2024-22667· High 7.8

Not known to be exploited · CVSS 7.8 High · fixed in 2:7.4.052-1ubuntu3.1+esm16 : patch vim soon.

Data as of 24 Nov 2026, 19:25 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CISA-ADPCVSS 3.17.8
Patch
Available – fixed in 2:7.4.052-1ubuntu3.1+esm16, 2:7.4.1689-3ubuntu1.5+esm23, 2:8.0.1453-1ubuntu1.13+esm8 +2
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Feb 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 23 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 22.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=jammyOther threatsAffected
  • <2:8.2.3995-1ubuntu2.16
Fixed in
  • 2:8.2.3995-1ubuntu2.16
Ubuntu 20.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=focalOther threatsAffected
  • <2:8.1.2269-1ubuntu5.22
Fixed in
  • 2:8.1.2269-1ubuntu5.22
Ubuntu Pro 18.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <2:8.0.1453-1ubuntu1.13+esm8
Fixed in
  • 2:8.0.1453-1ubuntu1.13+esm8
Ubuntu Pro 16.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra/xenialOther threatsAffected
  • <2:7.4.1689-3ubuntu1.5+esm23
Fixed in
  • 2:7.4.1689-3ubuntu1.5+esm23
Ubuntu Pro 14.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=trusty/esmOther threatsAffected
  • <2:7.4.052-1ubuntu3.1+esm16
Fixed in
  • 2:7.4.052-1ubuntu3.1+esm16

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…