CVE-2024-41965
published 2024-08-01CVE-2024-41965: 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…
PriorityP418medium4.2CVSS 3.1
AVLACHPRLUIRSUCLILAL
EPSS
0.29%
20.9th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:9.1.0698-1 (forky) | vim 2:9.1.0698-1 (forky) |
| msrc | azl3_vim_9.0.2190-4_on_azure_linux_3.0 | — | — |
| msrc | azl3_vim_9.0.2190-6_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl2_vim_9.0.2121-4_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_vim_9.0.2121-5_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| vim | vim | < 9.1.0648 | 9.1.0648 |
| vim | vim | >= 0 < 2:9.1.0698-1 | 2:9.1.0698-1 |
| vim | vim | >= 0 < 2:9.1.0698-1 | 2:9.1.0698-1 |
CVSS provenance
nvdv3.14.2MEDIUMCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
osv4.2MEDIUM
vendor_debian4.2LOW
vendor_msrc4.2MEDIUM
vendor_redhat4.2MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
Vim < v9.1.0648 has a double-free in dialog_changed()
vendor_msrc·2024-08-13·CVSS 4.2
CVE-2024-41965 [MEDIUM] CWE-415 Vim < v9.1.0648 has a double-free in dialog_changed()
Vim Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft.com/en-us/azure/azure-linux/tutorial-azur
Red Hat
vim: Double-Free Vulnerability in Vim Could Cause Application Crashes
vendor_redhat·2024-08-01·CVSS 4.2
CVE-2024-41965 [MEDIUM] CWE-416 vim: Double-Free Vulnerability in Vim Could Cause Application Crashes
vim: Double-Free Vulnerability in Vim Could Cause Application Crashes
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.
A vulnerability was found in Vim versions before 9.1.0648 that can cause the program to crash. This issue happens when a user abandons a modified file, and Vim tries to save it as a
Debian
CVE-2024-41965: vim - Vim is an open source command line text editor. double-free in dialog_changed() ...
vendor_debian·2024·CVSS 4.2
CVE-2024-41965 [MEDIUM] CVE-2024-41965: vim - Vim is an open source command line text editor. double-free in dialog_changed() ...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 2:9.1.0698-1)
sid: resolved (fixed in 2:9.1.0698-1)
trixie: resolved (fixed in 2:9.1.0698-1)
OSV
CVE-2024-41965: Vim is an open source command line text editor
osv·2024-08-01·CVSS 4.2
CVE-2024-41965 [MEDIUM] CVE-2024-41965: Vim is an open source command line text editor
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.
No detection rules found.
No public exploits indexed.
2024-08-01
Published