Cyber Resilience

CVE-2024-43790

Memory Safety in Vim 9.1.0425 – 9.1.0689

Published
22 August 2024
Modified
18 August 2025
Patch / advisory
CVSS Score v3.1 4.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
EPSS Score 0.0031 23th percentile
Risk Priority 35 floored blend · peak EPSS

Summary

CVE-2024-43790 is a medium-severity Heap-based Buffer Overflow (CWE-122) vulnerability in Vim Vim. Its CVSS base score is 4.5 (Medium).

Operationally, ranked at the 23th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

EU & UK References

Vulnerability Data

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…

more

(: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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2025-22134Same product: Netapp Bootstrap Os
CVE-2025-29768Same product: Netapp Bootstrap Os
CVE-2024-47814Same product: Netapp Bootstrap Os
CVE-2025-27423Same product: Netapp Hci Compute Node
CVE-2025-26603Same product: Netapp Hci Compute Node
CVE-2025-1215Same product: Netapp Bootstrap Os
CVE-2025-24014Same product: Netapp Hci Compute Node
CVE-2024-43374Same product: Netapp Bootstrap Os
CVE-2024-3447Same product: Netapp Hci Compute Node
CVE-2024-56337Same product: Netapp Bootstrap Os

Affected Assets

vim
vim
9.1.0425 — 9.1.0689
netapp
bootstrap os
all versions

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.4.1

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 full match
prevents

Secure-development practices directly require bounds checking and safe memory handling that prevent heap overflows.

ID.RA-01 partial match
prevents

Vulnerability scanning and recording can discover heap-overflow flaws but does not prevent their introduction in code.

PR.PS-02 partial match
prevents

Timely patching removes known heap-overflow instances after they exist.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Security testing in development and acceptance can detect heap overflows before release.

prevents

Secure development lifecycle mandates practices that reduce the likelihood of introducing heap overflows.

prevents

Application security requirements can specify bounds-checking and safe memory APIs that mitigate heap overflows.

prevents

Secure architecture and engineering principles include memory-safety and input-validation controls that address heap overflows.

prevents

Secure coding standards directly prescribe techniques (safe functions, bounds checks) that prevent heap-based buffer overflows.

none

Change management ensures controlled deployment of fixes for discovered heap-overflow vulnerabilities.

References