What’s Vulnerable › Vulnerabilities
CVE-2024-43374: Vim heap-use-after-free in src/arglist.c:207
- Severity: medium (CVSS 4.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-08-16 · updated 2026-06-17
- Weakness: CWE-416
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.
Affected products
- Neovim: through 0.10.4
- NetApp Bootstrap Os: all versions
- vim/vim: before 9.1.0678 — fixed in 9.1.0678
How to fix
Upgrade to a fixed version: vim/vim 9.1.0678. Check the vendor advisory for mitigations.
References
- https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8
- https://github.com/vim/vim/security/advisories/GHSA-2w8m-443v-cgvw
- http://www.openwall.com/lists/oss-security/2024/08/15/6
- https://security.netapp.com/advisory/ntap-20240920-0004/
Get alerted when CVE-2024-43374 or the next vulnerability affects your stack