Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-43790

4.5 · MEDIUM
Published Aug 22, 2024 vim CWE-122 EPSS 0.31% (23th pctl)

Overview

CVE-2024-43790 is a medium-severity vulnerability affecting vim vim. It was published on August 22, 2024 and has a CVSS 3.1 base score of 4.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 4.5, rated MEDIUM. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from vim. Update vim to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
vim vim >= 9.1.0425, < 9.1.0689 Affected

Frequently Asked Questions

What is CVE-2024-43790?

CVE-2024-43790 is a medium-severity vulnerability affecting vim vim. It was published on August 22, 2024 and has a CVSS 3.1 base score of 4.5 (MEDIUM).

How severe is CVE-2024-43790?

This vulnerability has a CVSS 3.1 base score of 4.5, rated MEDIUM. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2024-43790?

Check the references section for vendor advisories and patches from vim. Update vim to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-43790?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-43790 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.