CVE-2024-43374
4.5 MEDIUMThe UNIX editor Vim prior to version 9.1.0678 has a use-after-free error in argument list handling
Published: 2024-08-16 · Last updated: 2026-06-09
Severity and scoring
- CVSS
- 4.5 MEDIUM
- Vector
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
- CWE
- CWE-416
Affected products
| Vendor | Product |
|---|---|
| neovim | bootstrap_os, neovim, vim |
| netapp | bootstrap_os, neovim, vim |
| vim | bootstrap_os, neovim, vim |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2024-43374
- [Patch]https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8
- [Vendor advisory]https://github.com/vim/vim/security/advisories/GHSA-2w8m-443v-cgvw
- [Other]http://www.openwall.com/lists/oss-security/2024/08/15/6
- [Other]https://security.netapp.com/advisory/ntap-20240920-0004/
Related CVEs
Same vendor
- CVE-2026-46483 — Vim is an open source, command line text editor (3.6 LOW)
- CVE-2026-45130 — Vim is an open source, command line text editor (6.6 MEDIUM)
- CVE-2026-25749 — Vim is an open source, command line text editor (6.6 MEDIUM)
- CVE-2025-22134 — When switching to other buffers using the :all command and visual mode still being active, this may cause a heap-buffer overflow, because... (4.2 MEDIUM)
- CVE-2024-21262 — Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/ODBC) (6.5 MEDIUM)
Same CWE
- CVE-2026-53462 — ImageMagick is free and open-source software used for editing and manipulating digital images (5.9 MEDIUM)
- CVE-2026-46523 — ImageMagick is free and open-source software used for editing and manipulating digital images (6.2 MEDIUM)
- CVE-2026-52757 — Ghidra before 12.1 contains a heap-use-after-free vulnerability in the decompiler's HighVariable::merge() function during the variable me... (4.4 MEDIUM)
- CVE-2026-49496 — Ghidra before 12.1 contains a heap-use-after-free vulnerability in SleighBuilder::generatePointerAdd caused by iterator invalidation when... (6.1 MEDIUM)
- CVE-2026-45782 — Cloud Hypervisor is a Virtual Machine Monitor for Cloud workloads