CVE-2024-43802: Vim is an improved version of the unix vi text editor
Affects vimSource GCVE Database
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
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 4.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:LExploitation evidence
Disclosed: evidence found.
CVE published 26 Aug 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 20.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=esm-infra/xenialOther threats | Affected
| Fixed in
|
Ubuntu Pro 14.04 LTSvimpkg:deb/ubuntu/vim?arch=source&distro=trusty/esmOther threats | Affected
| Fixed in
|
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
- ubuntu.com/security/CVE-2024-43802 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-43802 (opens in a new tab)
- github.com/vim/vim/security/advisories/GHSA-4ghr-c62x-cqfh (opens in a new tab)
- github.com/vim/vim/commit/322ba9108612bead5eb7731ccb66763dec69ef1b (opens in a new tab)
- github.com/vim/vim/commit/322ba9108612bead5eb (opens in a new tab)
- ubuntu.com/security/notices/USN-7048-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7048-2 (opens in a new tab)