CVE-2024-41965: Vim < v9.1.0648 has a double-free in dialog_changed()
Vulnerability summary
CVE-2024-41965 is a medium (CVSS 4.2) Use After Free vulnerability in neovim. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 28.5% of scored vulnerabilities.
Not severe (CVSS 4.2, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 4Timeline
- 01-08-2024PublishedVulnerability first disclosed.
- 15-11-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · AlpineEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
- OSV · DebianEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
- NVDNIST4.2MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
EPSS trend
Probability
0.33%
Chance of exploitation in the next 30 days
Percentile
29%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.33% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-416Use After FreeThe product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
- CWE-415Double FreeThe product calls free() twice on the same memory address.
Affected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- vim< 9.1.0652-r0
Debian1 product
- vimAll versions (No fix recorded) | < 2:9.1.0698-1
Neovim1 product
- neovim≥ 0.10.0, < 0.10.2
Netapp1 product
Vim1 product
- vim< 9.1.0648
5 vendors · 5 products
References
6 links- security.netapp.com/advisory/ntap-20241115-0002/Vendor Advisory