CVE-2024-43802
published medium CVSS 3.1 · 4.5heap-buffer-overflow in ins_typebuf() in Vim < 9.1.0697
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vim | — | vim< 9.1.0697 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2711 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-761 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | vim | Fixed | 9.1.0707-r0 | Package fix record |
| Debian | bullseye | vim | Advisory build | 2:8.2.2434-3+deb11u2 | DLA-4097-1 |
| SUSE / openSUSE | SLE-12-SP5 | vimx86_64 | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| Ubuntu | bionic | vim | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Alpine Linux | v3.20 | vim | Fixed | 9.1.0707-r0 | Package fix record |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.21 | vim | Fixed | 9.1.0707-r0 | Package fix record |
| Alpine Linux | v3.22 | vim | Fixed | 9.1.0707-r0 | Package fix record |
| Alpine Linux | v3.23 | vim | Fixed | 9.1.0707-r0 | Package fix record |
| Alpine Linux | v3.24 | vim | Fixed | 9.1.0707-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP6 | vimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| Ubuntu | esm | vim | Advisory build | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
| Ubuntu | focal | vim | Advisory build | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
| Ubuntu | jammy | vim | Advisory build | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu | noble | vim | Advisory build | 2:9.1.0016-1ubuntu7.3 | USN-7048-1 |
| Ubuntu | xenial | vim | Advisory build | 2:7.4.1689-3ubuntu1.5+esm25 | USN-7048-1 |
| SUSE / openSUSE | SLE-12-SP5 | gvimx86_64 | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| SUSE / openSUSE | SLE-12-SP5 | vim-datanoarch | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| SUSE / openSUSE | SLE-12-SP5 | vim-data-commonnoarch | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-datanoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-data-commonnoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smallaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smallppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smalls390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smallx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-data-commonnoarch | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-data-commonnoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smallaarch64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-smallaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smallppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smalls390x | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-smalls390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smallx86_64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-smallx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | xxdaarch64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | xxds390x | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | xxdx86_64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-datanoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-data-commonnoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smallaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smallppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smalls390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smallx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| Ubuntu | bionic | vim-athena | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu | bionic | vim-common | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu | bionic | vim-gnome | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu | bionic | vim-gtk | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu | bionic | vim-gtk3 | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu | bionic | vim-gui-common | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu | bionic | vim-nox | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu | bionic | vim-runtime | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu | bionic | vim-tiny | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu | bionic | xxd | Advisory build | 2:8.0.1453-1ubuntu1.13+esm10 | USN-7048-1 |
| Ubuntu | esm | vim-athena | Advisory build | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
| Ubuntu | esm | vim-common | Advisory build | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
| Ubuntu | esm | vim-gnome | Advisory build | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
| Ubuntu | esm | vim-gtk | Advisory build | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
| Ubuntu | esm | vim-gui-common | Advisory build | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
| Ubuntu | esm | vim-lesstif | Advisory build | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
| Ubuntu | esm | vim-nox | Advisory build | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
| Ubuntu | esm | vim-runtime | Advisory build | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
| Ubuntu | esm | vim-tiny | Advisory build | 2:7.4.052-1ubuntu3.1+esm19 | USN-7048-2 |
| Ubuntu | focal | vim-athena | Advisory build | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
| Ubuntu | focal | vim-common | Advisory build | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
| Ubuntu | focal | vim-gtk | Advisory build | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
| Ubuntu | focal | vim-gtk3 | Advisory build | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
| Ubuntu | focal | vim-gui-common | Advisory build | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
| Ubuntu | focal | vim-nox | Advisory build | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
| Ubuntu | focal | vim-runtime | Advisory build | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
| Ubuntu | focal | vim-tiny | Advisory build | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
| Ubuntu | focal | xxd | Advisory build | 2:8.1.2269-1ubuntu5.25 | USN-7048-1 |
| Ubuntu | jammy | vim-athena | Advisory build | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu | jammy | vim-common | Advisory build | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu | jammy | vim-gtk | Advisory build | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu | jammy | vim-gtk3 | Advisory build | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu | jammy | vim-gui-common | Advisory build | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu | jammy | vim-nox | Advisory build | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu | jammy | vim-runtime | Advisory build | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu | jammy | vim-tiny | Advisory build | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu | jammy | xxd | Advisory build | 2:8.2.3995-1ubuntu2.19 | USN-7048-1 |
| Ubuntu | noble | vim-athena | Advisory build | 2:9.1.0016-1ubuntu7.3 | USN-7048-1 |
| Ubuntu | noble | vim-common | Advisory build | 2:9.1.0016-1ubuntu7.3 | USN-7048-1 |
| Ubuntu | noble | vim-gtk3 | Advisory build | 2:9.1.0016-1ubuntu7.3 | USN-7048-1 |
| Ubuntu | noble | vim-gui-common | Advisory build | 2:9.1.0016-1ubuntu7.3 | USN-7048-1 |
| Ubuntu | noble | vim-motif | Advisory build | 2:9.1.0016-1ubuntu7.3 | USN-7048-1 |
| Ubuntu | noble | vim-nox | Advisory build | 2:9.1.0016-1ubuntu7.3 | USN-7048-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vim | vim | < 9.1.0697 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-122 CWE-122: Heap-based Buffer Overflow
References
4Provider assertions
3GitHub_M · cna
heap-buffer-overflow in ins_typebuf() in Vim < 9.1.0697
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 55ad7b91ea8507c9329c2bd1ff8c8a16517d4476cc098f14e936519f5d74c9bb
- Ingested
- 23 Sep 2026, 08:27:16 UTC
- Source record
- Official CVE record