CVE-2024-43790
Vim Buffer Overflow Vulnerability
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.
INFO
Published Date :
Aug. 22, 2024, 10:15 p.m.
Last Modified :
Nov. 21, 2024, 9:35 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
3.4
Exploitability Score :
1.0
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-43790
.
URL | Resource |
---|---|
https://github.com/vim/vim/commit/cacb6693c10bb19f28a50eca47bc | |
https://github.com/vim/vim/security/advisories/GHSA-v2x2-cjcg-f9jm | |
https://security.netapp.com/advisory/ntap-20240920-0005/ |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-43790
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-43790
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20240920-0005/ -
CVE Received by [email protected]
Aug. 22, 2024
Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://github.com/vim/vim/security/advisories/GHSA-v2x2-cjcg-f9jm [No types assigned] Added Reference GitHub, Inc. https://github.com/vim/vim/commit/cacb6693c10bb19f28a50eca47bc [No types assigned] Added CWE GitHub, Inc. CWE-122 Added CVSS V3.1 GitHub, Inc. AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-43790
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-43790
weaknesses.