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

CVE-2024-43802 is fixed in 22 products on 1 platform, first by vim 2:8.0.1453-1ubuntu1.13+esm10, released August 26, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-43802
- Priority: Routine
- CVSS: 4.5 (Medium)
- EPSS: 0.0030
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 26, 2024

## Description

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | vim Debian 12.15 (bookworm) | 2:9.0.1378-2+deb12u1 | [DEBIAN-CVE-2024-43802](https://patchblox.com/security/data/fix/linux/debian-cve-2024-43802.md) | Aug 26, 2024 |
| Linux | vim Debian 13.5 (trixie) | 2:9.1.0698-1 | [DEBIAN-CVE-2024-43802](https://patchblox.com/security/data/fix/linux/debian-cve-2024-43802.md) | Aug 26, 2024 |
| Linux | vim Debian 14 | 2:9.1.0698-1 | [DEBIAN-CVE-2024-43802](https://patchblox.com/security/data/fix/linux/debian-cve-2024-43802.md) | Aug 26, 2024 |
| Linux | vim Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [vim 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-vim-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | vim Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.25 | [vim 2:8.1.2269-1ubuntu5.25](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-2-8.1.2269-1ubuntu5.25.md) | Aug 26, 2024 |
| Linux | vim Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.19 | [vim 2:8.2.3995-1ubuntu2.19](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-2-8.2.3995-1ubuntu2.19.md) | Aug 26, 2024 |
| Linux | vim Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.3 | [vim 2:9.1.0016-1ubuntu7.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-2-9.1.0016-1ubuntu7.3.md) | Aug 26, 2024 |
| Linux | vim Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6 | [vim 2:9.1.0496-1ubuntu6](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-2-9.1.0496-1ubuntu6.md) | Jan 16, 2026 |
| Linux | vim opensuse-leap 15.6 | 9.1.1101-150500.20.21.1 | [SUSE-SU-2025:0723-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0723-1.md) | Feb 26, 2025 |
| Linux | vim sles 15.6 | 9.1.1101-150500.20.21.1 | [SUSE-SU-2025:0723-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0723-1.md) | Feb 26, 2025 |
| Linux | vim-athena Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [vim-athena 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-vim-athena-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | vim-athena Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.25 | [vim-athena 2:8.1.2269-1ubuntu5.25](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-athena-2-8.1.2269-1ubuntu5.25.md) | Aug 26, 2024 |
| Linux | vim-athena Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.19 | [vim-athena 2:8.2.3995-1ubuntu2.19](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-athena-2-8.2.3995-1ubuntu2.19.md) | Aug 26, 2024 |
| Linux | vim-athena Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.3 | [vim-athena 2:9.1.0016-1ubuntu7.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-athena-2-9.1.0016-1ubuntu7.3.md) | Aug 26, 2024 |
| Linux | vim-athena Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6 | [vim-athena 2:9.1.0496-1ubuntu6](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-athena-2-9.1.0496-1ubuntu6.md) | Jan 16, 2026 |
| Linux | vim-common Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [vim-common 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-vim-common-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | vim-common Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.25 | [vim-common 2:8.1.2269-1ubuntu5.25](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-common-2-8.1.2269-1ubuntu5.25.md) | Aug 26, 2024 |
| Linux | vim-common Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.19 | [vim-common 2:8.2.3995-1ubuntu2.19](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-common-2-8.2.3995-1ubuntu2.19.md) | Aug 26, 2024 |
| Linux | vim-common Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.3 | [vim-common 2:9.1.0016-1ubuntu7.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-common-2-9.1.0016-1ubuntu7.3.md) | Aug 26, 2024 |
| Linux | vim-common Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6 | [vim-common 2:9.1.0496-1ubuntu6](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-common-2-9.1.0496-1ubuntu6.md) | Jan 16, 2026 |
| Linux | vim-common amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | vim-data amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | vim-debuginfo amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | vim-debugsource amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | vim-default-editor amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | vim-enhanced amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | vim-enhanced-debuginfo amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | vim-filesystem amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | vim-gnome Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [vim-gnome 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-vim-gnome-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | vim-gtk Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [vim-gtk 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-vim-gtk-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | vim-gtk Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.25 | [vim-gtk 2:8.1.2269-1ubuntu5.25](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-gtk-2-8.1.2269-1ubuntu5.25.md) | Aug 26, 2024 |
| Linux | vim-gtk Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.19 | [vim-gtk 2:8.2.3995-1ubuntu2.19](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-gtk-2-8.2.3995-1ubuntu2.19.md) | Aug 26, 2024 |
| Linux | vim-gtk3 Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [vim-gtk3 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-vim-gtk3-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | vim-gtk3 Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.25 | [vim-gtk3 2:8.1.2269-1ubuntu5.25](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-gtk3-2-8.1.2269-1ubuntu5.25.md) | Aug 26, 2024 |
| Linux | vim-gtk3 Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.19 | [vim-gtk3 2:8.2.3995-1ubuntu2.19](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-gtk3-2-8.2.3995-1ubuntu2.19.md) | Aug 26, 2024 |
| Linux | vim-gtk3 Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.3 | [vim-gtk3 2:9.1.0016-1ubuntu7.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-gtk3-2-9.1.0016-1ubuntu7.3.md) | Aug 26, 2024 |
| Linux | vim-gtk3 Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6 | [vim-gtk3 2:9.1.0496-1ubuntu6](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-gtk3-2-9.1.0496-1ubuntu6.md) | Jan 16, 2026 |
| Linux | vim-gui-common Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [vim-gui-common 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-vim-gui-common-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | vim-gui-common Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.25 | [vim-gui-common 2:8.1.2269-1ubuntu5.25](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-gui-common-2-8.1.2269-1ubuntu5.25.md) | Aug 26, 2024 |
| Linux | vim-gui-common Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.19 | [vim-gui-common 2:8.2.3995-1ubuntu2.19](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-gui-common-2-8.2.3995-1ubuntu2.19.md) | Aug 26, 2024 |
| Linux | vim-gui-common Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.3 | [vim-gui-common 2:9.1.0016-1ubuntu7.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-gui-common-2-9.1.0016-1ubuntu7.3.md) | Aug 26, 2024 |
| Linux | vim-gui-common Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6 | [vim-gui-common 2:9.1.0496-1ubuntu6](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-gui-common-2-9.1.0496-1ubuntu6.md) | Jan 16, 2026 |
| Linux | vim-minimal amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | vim-minimal-debuginfo amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | vim-motif Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.3 | [vim-motif 2:9.1.0016-1ubuntu7.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-motif-2-9.1.0016-1ubuntu7.3.md) | Aug 26, 2024 |
| Linux | vim-motif Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6 | [vim-motif 2:9.1.0496-1ubuntu6](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-motif-2-9.1.0496-1ubuntu6.md) | Jan 16, 2026 |
| Linux | vim-nox Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [vim-nox 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-vim-nox-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | vim-nox Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.25 | [vim-nox 2:8.1.2269-1ubuntu5.25](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-nox-2-8.1.2269-1ubuntu5.25.md) | Aug 26, 2024 |
| Linux | vim-nox Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.19 | [vim-nox 2:8.2.3995-1ubuntu2.19](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-nox-2-8.2.3995-1ubuntu2.19.md) | Aug 26, 2024 |
| Linux | vim-nox Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.3 | [vim-nox 2:9.1.0016-1ubuntu7.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-nox-2-9.1.0016-1ubuntu7.3.md) | Aug 26, 2024 |
| Linux | vim-nox Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6 | [vim-nox 2:9.1.0496-1ubuntu6](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-nox-2-9.1.0496-1ubuntu6.md) | Jan 16, 2026 |
| Linux | vim-runtime Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [vim-runtime 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-vim-runtime-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | vim-runtime Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.25 | [vim-runtime 2:8.1.2269-1ubuntu5.25](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-runtime-2-8.1.2269-1ubuntu5.25.md) | Aug 26, 2024 |
| Linux | vim-runtime Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.19 | [vim-runtime 2:8.2.3995-1ubuntu2.19](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-runtime-2-8.2.3995-1ubuntu2.19.md) | Aug 26, 2024 |
| Linux | vim-runtime Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.3 | [vim-runtime 2:9.1.0016-1ubuntu7.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-runtime-2-9.1.0016-1ubuntu7.3.md) | Aug 26, 2024 |
| Linux | vim-runtime Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6 | [vim-runtime 2:9.1.0496-1ubuntu6](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-runtime-2-9.1.0496-1ubuntu6.md) | Jan 16, 2026 |
| Linux | vim-tiny Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [vim-tiny 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-vim-tiny-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | vim-tiny Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.25 | [vim-tiny 2:8.1.2269-1ubuntu5.25](https://patchblox.com/security/data/fix/linux/ubuntu-focal-vim-tiny-2-8.1.2269-1ubuntu5.25.md) | Aug 26, 2024 |
| Linux | vim-tiny Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.19 | [vim-tiny 2:8.2.3995-1ubuntu2.19](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-vim-tiny-2-8.2.3995-1ubuntu2.19.md) | Aug 26, 2024 |
| Linux | vim-tiny Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.3 | [vim-tiny 2:9.1.0016-1ubuntu7.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-vim-tiny-2-9.1.0016-1ubuntu7.3.md) | Aug 26, 2024 |
| Linux | vim-tiny Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6 | [vim-tiny 2:9.1.0496-1ubuntu6](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-vim-tiny-2-9.1.0496-1ubuntu6.md) | Jan 16, 2026 |
| Linux | xxd Ubuntu 18.04.6 LTS (bionic) | 2:8.0.1453-1ubuntu1.13+esm10 | [xxd 2:8.0.1453-1ubuntu1.13+esm10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-xxd-2-8.0.1453-1ubuntu1.13-esm10.md) | Aug 26, 2024 |
| Linux | xxd Ubuntu 20.04 LTS (focal) | 2:8.1.2269-1ubuntu5.25 | [xxd 2:8.1.2269-1ubuntu5.25](https://patchblox.com/security/data/fix/linux/ubuntu-focal-xxd-2-8.1.2269-1ubuntu5.25.md) | Aug 26, 2024 |
| Linux | xxd Ubuntu 22.04.1 LTS (jammy) | 2:8.2.3995-1ubuntu2.19 | [xxd 2:8.2.3995-1ubuntu2.19](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-xxd-2-8.2.3995-1ubuntu2.19.md) | Aug 26, 2024 |
| Linux | xxd Ubuntu 24.04.5 LTS (noble) | 2:9.1.0016-1ubuntu7.3 | [xxd 2:9.1.0016-1ubuntu7.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-xxd-2-9.1.0016-1ubuntu7.3.md) | Aug 26, 2024 |
| Linux | xxd Ubuntu 24.10 (oracular) | 2:9.1.0496-1ubuntu6 | [xxd 2:9.1.0496-1ubuntu6](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-xxd-2-9.1.0496-1ubuntu6.md) | Jan 16, 2026 |
| Linux | xxd amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |
| Linux | xxd-debuginfo amzn 2023 | 2:9.1.785-1.amzn2023.0.1 | [ALAS2023-2024-761](https://patchblox.com/security/data/fix/linux/alas2023-2024-761.md) | Nov 13, 2024 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
