5.5
MEDIUM CVSS 3.1
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 :

Aug. 18, 2025, 5:08 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2024-43790 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Netapp bootstrap_os
2 Netapp hci_compute_node
1 Vim vim
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
Upgrade Vim to address a buffer overflow vulnerability in the text editor.
  • Update Vim to version 9.1.0689 or later.
  • Update the affected packages.
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 Patch
https://github.com/vim/vim/security/advisories/GHSA-v2x2-cjcg-f9jm Vendor Advisory
https://security.netapp.com/advisory/ntap-20240920-0005/ Third Party Advisory
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.

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.

  • Initial Analysis by [email protected]

    Aug. 18, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CPE Configuration OR *cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* versions from (including) 9.1.0425 up to (excluding) 9.1.0689
    Added CPE Configuration AND OR *cpe:2.3:o:netapp:bootstrap_os:-:*:*:*:*:*:*:* OR cpe:2.3:h:netapp:hci_compute_node:-:*:*:*:*:*:*:*
    Added Reference Type GitHub, Inc.: https://github.com/vim/vim/commit/cacb6693c10bb19f28a50eca47bc Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/vim/vim/security/advisories/GHSA-v2x2-cjcg-f9jm Types: Vendor Advisory
    Added Reference Type CVE: https://security.netapp.com/advisory/ntap-20240920-0005/ Types: Third Party Advisory
  • 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
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 5.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact