CVE-2024-43790
CVE-2024-43790 — heap-buffer-overflow in do_search() in Vim < 9.1.0689
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
4.5
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 4.5 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-122
References
3 on the record
- github.com/vim/vim/security/advisories/GHSA-v2x2-cjcg-f9jm
x_refsource_CONFIRM
- github.com/vim/vim/commit/cacb6693c10bb19f28a50eca47bc
x_refsource_MISC
- security.netapp.com/advisory/ntap-20240920-0005/
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-94127 BIG-IP APM OAuth vulnerabilityCVSS 9.8 · CISA KEV
- CVE-2025-25249 Fortinet Multiple Products Heap-based Buffer Overflow VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2024-38812 VMware vCenter Server Heap-Based Buffer Overflow VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2024-37079 Broadcom VMware vCenter Server Out-of-bounds Write VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2023-27997 Fortinet FortiOS and FortiProxy SSL-VPN Heap-Based Buffer Overflow VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2019-3568 WhatsApp VOIP Stack Buffer Overflow VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.