CVE-2024-41965
Vim < v9.1.0648 has a double-free in dialog_changed()
Reported by github_m · Published August 1, 2024
Vim is an open source command line text editor. double-free in dialog_changed() in Vim < v9.1.0648. When abandoning a buffer, Vim may ask the user what to do with the modified buffer. If the user wants the changed buffer to be saved, Vim may create a new Untitled file, if the buffer did not have a name yet. However, when setting the buffer name to Unnamed, Vim will falsely free a pointer twice, leading to a double-free and possibly later to a heap-use-after-free, which can lead to a crash. The issue has been fixed as of Vim patch v9.1.0648.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| neovim | neovim | 0.10.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.1.0648 |
| vim | vim | 0 |
| alpine | vim | 0 |
Timeline
- Aug 1, 2024 CVE Published
- Aug 6, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
- Dec 5, 2025 CVE Updated
- Jan 7, 2026 Security Advisory (2 in total, the first dated here)
- Nov 2, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-41965
vulnetix vdb fixes CVE-2024-41965
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-41965/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart