CVE-2024-43374 Vim heap-use-after-free in src/arglist.c:207
A use-after-free in Vim's argument list handling allows a crash if malicious autocommands are triggered, requiring user interaction or malicious plugins.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-43374?
CVE-2024-43374 is a medium-severity use after free vulnerability in Netapp Bootstrap Os, published on 15 Aug 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2024-43374?
It affects 3 products.
Products include Neovim Neovim, Netapp Bootstrap Os, Vim Vim.
How do I fix CVE-2024-43374?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-43374 being exploited?
There is no known exploitation of CVE-2024-43374 in the wild and no public exploit code.
Other vulnerabilities in Netapp Bootstrap Os
Sources
Also known as ALPINE-CVE-2024-43374, AZL-47817, AZL-47832, BELL-CVE-2024-43374, CLSA-2024-1730133086, DEBIAN-CVE-2024-43374 and 6 more.