Skip to main content
VulnerabilityPublished Updated

CVE-2024-43802: Vim is an improved version of the unix vi text editor

Affects vimSource GCVE Database

0
Compare
Authoritative record:CVE-2024-43802· Medium 4.5

Not known to be exploited · CVSS 4.5 Medium · fixed in 2:7.4.052-1ubuntu3.1+esm19 : update vim when convenient.

Data as of 24 Nov 2026, 21:14 UTC

CVSS 3.1 base score
4.5Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.14.5
EPSS
0.2% chance of exploitation in 30 days – higher than 22% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2:7.4.052-1ubuntu3.1+esm19, 2:7.4.1689-3ubuntu1.5+esm25, 2:8.0.1453-1ubuntu1.13+esm10 +3
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Aug 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 24 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=nobleOther threatsAffected
  • <2:9.1.0016-1ubuntu7.3
Fixed in
  • 2:9.1.0016-1ubuntu7.3
Ubuntu 22.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=jammyOther threatsAffected
  • <2:8.2.3995-1ubuntu2.19
Fixed in
  • 2:8.2.3995-1ubuntu2.19
Ubuntu 20.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=focalOther threatsAffected
  • <2:8.1.2269-1ubuntu5.25
Fixed in
  • 2:8.1.2269-1ubuntu5.25
Ubuntu Pro 18.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <2:8.0.1453-1ubuntu1.13+esm10
Fixed in
  • 2:8.0.1453-1ubuntu1.13+esm10
Ubuntu Pro 16.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra/xenialOther threatsAffected
  • <2:7.4.1689-3ubuntu1.5+esm25
Fixed in
  • 2:7.4.1689-3ubuntu1.5+esm25
Ubuntu Pro 14.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=trusty/esmOther threatsAffected
  • <2:7.4.052-1ubuntu3.1+esm19
Fixed in
  • 2:7.4.052-1ubuntu3.1+esm19

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

Description

Vim is an improved version of the unix vi text editor. When flushing the typeahead buffer, Vim moves the current position in the typeahead buffer but does not check whether there is enough space left in the buffer to handle the next characters. So this may lead to the tb_off position within the typebuf variable to point outside of the valid buffer size, which can then later lead to a heap-buffer overflow in e.g. ins_typebuf(). Therefore, when flushing the typeahead buffer, check if there is enough space left before advancing the off position. If not, fall back to flush current typebuf contents. It's not quite clear yet, what can lead to this situation. It seems to happen when error messages occur (which will cause Vim to flush the typeahead buffer) in comnination with several long mappgins and so it may eventually move the off position out of a valid buffer size. Impact is low since it is not easily reproducible and requires to have several mappings active and run into some error condition. But when this happens, this will cause a crash. The issue has been fixed as of Vim patch v9.1.0697. Users are advised to upgrade. There are no known workarounds for this issue.

References

Community reviews

Loading reviews…