# CVE-2024-43790: vim: Vim is an open source command line text editor

CVE-2024-43790 is fixed in vim on 1 platform, first by DEBIAN-CVE-2024-43790, released August 22, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-43790
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0031
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 22, 2024

## Description

Vim is an open source command line text editor. When performing a search and displaying the search-count message is disabled (:set shm+=S), the search pattern is displayed at the bottom of the screen in a buffer (msgbuf). When right-left mode (:set rl) is enabled, the search pattern is reversed. This happens by allocating a new buffer. If the search pattern contains some ASCII NUL characters, the buffer allocated will be smaller than the original allocated buffer (because for allocating the reversed buffer, the strlen() function is called, which only counts until it notices an ASCII NUL byte ) and thus the original length indicator is wrong. This causes an overflow when accessing characters inside the msgbuf by the previously (now wrong) length of the msgbuf. The issue has been fixed as of Vim patch v9.1.0689.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | vim Debian 13.5 (trixie) | 2:9.1.0698-1 | [DEBIAN-CVE-2024-43790](https://patchblox.com/security/data/fix/linux/debian-cve-2024-43790.md) | Aug 22, 2024 |
| Linux | vim Debian 14 | 2:9.1.0698-1 | [DEBIAN-CVE-2024-43790](https://patchblox.com/security/data/fix/linux/debian-cve-2024-43790.md) | Aug 22, 2024 |
| 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 |

---

Data as of 2026-11-08T13:06:02Z 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.
