CVE-2024-43374
mediumpriority · track · 19EPSS 0.004 · 29 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (12)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2024-1870vim: Schwachstelle ermöglicht Denial of ServiceDeutsch2024-08-15csaf · cert_bundDE
Ein lokaler Angreifer kann eine Schwachstelle in vim ausnutzen, um einen Denial of Service Angriff durchzuführen.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2024/08/15/6cnnvd
- https://access.redhat.com/security/cve/cve-2024-43374cnnvd
- https://cxsecurity.com/cveshow/CVE-2024-43374/cnnvd
- https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8cnnvd
- https://github.com/vim/vim/security/advisories/GHSA-2w8m-443v-cgvwcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2024-43374cnnvd
- https://security.netapp.com/advisory/ntap-20240920-0004/cnnvd
- https://vigilance.fr/vulnerability/Vim-use-after-free-via-Argument-List-New-File-45082cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan