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

Source GCVE Database

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

Not known to be exploited · CVSS 7.8 High · fixed in 9.0.2142 : patch affected systems soon.

Data as of 4 Nov 2026, 17:50 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 9.0.2142
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 4 Nov 2026.

What to do

AI-suggested

A fix is available in Vim version 9.0.2142. Users should upgrade to this version or later to remediate the vulnerability. Since this is not a cloud service, manual patching is required. No vendor advisory content was provided to indicate alternative mitigations or if the issue is already mitigated.

Description

Vim versions before 9.0.2142 contain a stack-based buffer overflow vulnerability in the did_set_langmap function within map.c. This occurs because the function uses sprintf to write to an error buffer, which is then passed to option callback functions. The vulnerability has a high severity rating with a CVSS score of 7.8.

References

Community reviews

Loading reviews…