CVE & CISA-KEV Catalog

CVE-2024-43802

MEDIUM
4.5
CVSS v3
NVD

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.

How to fix

Remediation Available
vimDebian
Fixed in:2:8.2.2434-3+deb11u2CVE-2024-43802
Fixed in:2:9.0.1378-2+deb12u1CVE-2024-43802
Fixed in:2:9.1.0698-1CVE-2024-43802
Fixed in:2:9.1.0698-1CVE-2024-43802
vimUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm19USN-7048-2
Fixed in:2:7.4.1689-3ubuntu1.5+esm25USN-7048-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm10USN-7048-1
Fixed in:2:8.1.2269-1ubuntu5.25USN-7048-1
Fixed in:2:8.2.3995-1ubuntu2.19USN-7048-1
Fixed in:2:9.1.0016-1ubuntu7.3USN-7048-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityLow

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

Exploit Intelligence

0.30%probability of exploitation in 30 days
21stpercentile

Low risk: more likely to be exploited than 21% of all known CVEs.

References

Related Vulnerabilities

Other CWE-122 (Heap-based Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2015-3113Critical9.8100%KEVFix
CVE-2024-26256High7.888%-Fix
CVE-2020-25687Medium5.987%-Fix
CVE-2009-3459High8.886%KEVFix
CVE-2021-21017High8.886%KEV-
CVE-2020-25683Medium5.986%-Fix
Embed a live status badge for CVE-2024-43802
CVE-2024-43802 severity badge

Markdown

[![CVE-2024-43802](https://tridentstack.com/cve/badge/CVE-2024-43802.svg)](https://tridentstack.com/cve/CVE-2024-43802)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-43802"><img src="https://tridentstack.com/cve/badge/CVE-2024-43802.svg" alt="CVE-2024-43802"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-03.