CVE-2024-43374

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

Description

The UNIX editor Vim prior to version 9.1.0678 has a use-after-free error in argument list handling. When adding a new file to the argument list, this triggers `Buf*` autocommands. If in such an autocommand the buffer that was just opened is closed (including the window where it is shown), this causes the window structure to be freed which contains a reference to the argument list that we are actually modifying. Once the autocommands are completed, the references to the window and argument list are no longer valid and as such cause an use-after-free. Impact is low since the user must either intentionally add some unusual autocommands that wipe a buffer during creation (either manually or by sourcing a malicious plugin), but it will crash Vim. The issue has been fixed as of Vim patch v9.1.0678.

CVSS Details

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

Threat Intelligence

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

Weaknesses 1

CWE-416 Use After Free Memory Safety

Affected Products 4

VendorProductVersionRange
netappbootstrap_os*any
netapphci_compute_node*any
neovimneovim* ≤0.10.4
vimvim* <9.1.0678

References 4

  • openwall.com http://www.openwall.com/lists/oss-security/2024/08/15/6
    Mailing ListThird Party Advisory
  • github.com https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8
    Patch
  • github.com https://github.com/vim/vim/security/advisories/GHSA-2w8m-443v-cgvw
    Vendor Advisory
  • security.netapp.com https://security.netapp.com/advisory/ntap-20240920-0004/
    Third Party Advisory

Remediation

  • github.com https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8
    Patch