PT-2024-6176

CVE-2024-43374

·

Published

2024-08-15

·

Updated

2026-10-31

Description by

CVSS 3.1
4.7
Medium
MetricsAV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Vim versions prior to 9.1.0678
Description The issue is related to a use-after-free error in argument list handling. When adding a new file to the argument list, it triggers Buf* autocommands. If in such an autocommand the buffer that was just opened is closed, this causes the window structure to be freed, which contains a reference to the argument list that is being modified. Once the autocommands are completed, the references to the window and argument list are no longer valid, causing a use-after-free. The impact is low, as the user must either intentionally add unusual autocommands that wipe a buffer during creation or source a malicious plugin, but it will crash Vim.
Recommendations For versions prior to 9.1.0678, update to Vim patch v9.1.0678 or later to fix the issue. As a temporary workaround, consider avoiding the use of Buf* autocommands that close the buffer during creation until a patch is available. Restrict access to malicious plugins that may exploit this issue to minimize the risk of exploitation.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Weakness enumeration
Related identifiers
GHSA-2W8M-443V-CGVW
ALT-PU-2024-17009
ALT-PU-2024-17133
ALT-PU-2024-17154
ALT-PU-2024-17456
AZL-47817
AZL-47832
CLEANSTART-2024-RX77785
ECHO-D1CA-6D1A-5E4D
MGASA-2024-0285
OESA-2024-2026
OPENSUSE-SU-2024_4330-1
SUSE-SU-2024:4330-1
SUSE-SU-2024_4330-1
SUSE-SU-2024:4409-1
SUSE-SU-2024_4409-1
SUSE-SU-2025:20128-1
USN-6993-1
Found an issue in the description? Have something to add? Feel free to write us 👾