5.5

CVE-2024-43790: heap-buffer-overflow in do_search() in Vim < 9.1.0689

Analyzed
AliasesALPINE-CVE-2024-43790DEBIAN-CVE-2024-43790CGA-5g2v-rp22-w37h
Published 22-08-2024Last modified 20-09-2024

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.

Priority
Routine

Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.31%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 7

Timeline

  1. 22-08-2024
    PublishedVulnerability first disclosed.
  2. 20-09-2024
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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