CVE-2024-43374
Vim heap-use-after-free in src/arglist.c:207
Reported by github_m · Published August 15, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim | vim | 9.1.0678 |
| neovim | neovim | 0.10.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.1.0678 |
| vim | vim | 0 |
| amazon:2023 | xxd | 0 |
| wolfi | vim | 0 |
| alpine | vim | 0 |
| amazon:2023 | vim-default-editor | 0 |
| amazon:2023 | vim-filesystem | 0 |
| amazon:2023 | vim-minimal | 0 |
| amazon:2023 | vim-data | 0 |
| amazon:2023 | vim-common | 0 |
| amazon:2023 | vim-enhanced | 0 |
| chainguard | vim | 0 |
Timeline
- Aug 15, 2024 CVE Published
- Aug 16, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
- Jan 6, 2026 Security Advisory (2 in total, the first dated here)
- Feb 15, 2026 CVE Updated
- Aug 10, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-43374
vulnetix vdb fixes CVE-2024-43374
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-43374/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart