PT-2024-6176 · Vim+6 · Vim+6

·

CVE-2024-43374

·

Published

2024-08-15

·

Updated

2026-06-09

CVSS v3.1

4.7

Medium

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

Exploit

Fix

DoS

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2024-17009
ALT-PU-2024-17133
ALT-PU-2024-17154
ALT-PU-2024-17456
AZL-47817
AZL-47832
BDU:2024-07097
CVE-2024-43374
ECHO-D1CA-6D1A-5E4D
GHSA-2W8M-443V-CGVW
MGASA-2024-0285
OESA-2024-2026
OPENSUSE-SU-2024_4330-1
SUSE-SU-2024:4330-1
SUSE-SU-2024:4409-1
SUSE-SU-2024_4330-1
SUSE-SU-2024_4409-1
SUSE-SU-2025:20128-1
USN-6993-1

Affected Products

Alt Linux
Debian
Linuxmint
Red Os
Suse
Ubuntu
Vim