---
title: "CVE-2024-43802\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2024-43802?format=md
keywords: index, follow
---

# CVE-2024-43802

Publication date 26 August 2024

Last updated 26 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**4.5 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2024-43802?format=md#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| vim | 24.10 oracular | Fixed 2:9.1.0496-1ubuntu6 |
| 24.04 LTS noble | Fixed 2:9.1.0016-1ubuntu7.3 |
| 22.04 LTS jammy | Fixed 2:8.2.3995-1ubuntu2.19 |
| 20.04 LTS focal | Fixed 2:8.1.2269-1ubuntu5.25 |
| 18.04 LTS bionic | Fixed 2:8.0.1453-1ubuntu1.13+esm10  Ubuntu Pro |
| 16.04 LTS xenial | Fixed 2:7.4.1689-3ubuntu1.5+esm25  Ubuntu Pro |
| 14.04 LTS trusty | Fixed 2:7.4.052-1ubuntu3.1+esm19  Ubuntu Pro |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

4.5 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Local |
  | Attack complexity | High |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | Low |
  | Integrity impact | Low |
  | Availability impact | Low |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 4.5 · Medium |
  | Exploitability score | - |
  | Impact score | - |

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

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-43802)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-43802)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2024-43802)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2024-43802)

### Related Ubuntu Security Notices (USN)

+ [USN-7048-1](https://usn.ubuntu.com/USN-7048-1)
+ Vim vulnerability
+ 1 October 2024

+ [USN-7048-2](https://usn.ubuntu.com/USN-7048-2)
+ Vim vulnerability
+ 16 October 2024

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2024-43802>
* <https://github.com/vim/vim/security/advisories/GHSA-4ghr-c62x-cqfh>
* <https://github.com/vim/vim/commit/322ba9108612bead5eb7731ccb66763dec69ef1b (v9.1.0697)>
* <https://github.com/vim/vim/commit/322ba9108612bead5eb>
