CVE-2024-43790: heap-buffer-overflow in do_search() in Vim < 9.1.0689
Vulnerability summary
CVE-2024-43790 is a medium (CVSS 5.5) Heap-based Buffer Overflow vulnerability in netapp bootstrap_os. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 25.3% of scored vulnerabilities.
Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 7Timeline
- 22-08-2024PublishedVulnerability first disclosed.
- 20-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA4.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
- OSV · AlpineEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
25%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.31% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- vim≥ 9.1.0425, < 9.1.0707-r0
Chainguard1 product
- vim< 9.1.0689-r0
Debian1 product
- vimAll versions (No fix recorded) | < 2:9.1.0698-1
Netapp1 product
Vim1 product
- vim< v9.1.0689 | ≥ 9.1.0425, < 9.1.0689
Wolfi1 product
- vim< 9.1.0689-r0
6 vendors · 6 products
References
7 links- github.com/vim/vim/security/advisories/GHSA-v2x2-cjcg-f9jmX Refsource CONFIRMAdvisoryVendor Advisory