Medium severity · published Aug 22, 2024
CVE-2024-43790
Vim is an open source command line text editor
5.5
CVSS
0.3%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 23% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BO
Bootstrap OS · Netapp
All versions, or not specified · source: NVD
VI
Vim · Vim
9.1.0425 before 9.1.0689 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-43790
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-43790
Patch
https://github.com/vim/vim/commit/cacb6693c10bb19f28a50eca47bc
Vendor Advisory
https://github.com/vim/vim/security/advisories/GHSA-v2x2-cjcg-f9jm
Third Party Advisory
https://security.netapp.com/advisory/ntap-20240920-0005/
More from Bootstrap OS
9.8
CVE-2025-24813
Apache Tomcat: Potential RCE and/or information disclosure and/or information corruption with partial PUT
7.8
CVE-2024-1086
Use-after-free in Linux kernel's netfilter: nf_tables component
7.8
CVE-2023-4911
Glibc: buffer overflow in ld.so leading to privilege escalation
7.8
CVE-2022-0492
Linux Kernel Improper Authentication Vulnerability
9.8
CVE-2024-56337
Apache Tomcat: RCE due to TOCTOU issue in JSP compilation - CVE-2024-50379 mitigation was incomplete
