CVE-2024-43790

MEDIUM EPSS 22.4%
Published Aug 22, 20241y ago · Modified Jun 17, 20262w ago
5.5 CVSS 3.1
Medium
Find Similar
Published Aug 22, 2024 1y ago
Last Modified Jun 17, 2026 2w ago

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 Details

Base Score
5.5
Exploitability
1.8
Impact
3.6
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

EPSS Exploit Probability
22.4% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-122

Affected Products 3

VendorProductVersionRange
vimvim*≥9.1.0425  –  <9.1.0689
netappbootstrap_os*any
netapphci_compute_node*any

References 3

  • github.com https://github.com/vim/vim/commit/cacb6693c10bb19f28a50eca47bc
    Patch
  • github.com https://github.com/vim/vim/security/advisories/GHSA-v2x2-cjcg-f9jm
    Vendor Advisory
  • security.netapp.com https://security.netapp.com/advisory/ntap-20240920-0005/
    Third Party Advisory

Remediation

  • github.com https://github.com/vim/vim/commit/cacb6693c10bb19f28a50eca47bc
    Patch