CVE-2024-41965

CVE-2024-41965 is a medium-severity vulnerability in Vim with a CVSS 3.x base score of 4.2. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-415.

Key facts

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.

Frequently asked questions

What is CVE-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 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.
How severe is CVE-2024-41965?
CVE-2024-41965 has a CVSS 3.x base score of 4.2, rated medium severity. It is exploitable over local access with high attack complexity, requires low privileges and user interaction. Impact on confidentiality is low, integrity low, and availability low.
Is CVE-2024-41965 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (21st percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-41965?
CVE-2024-41965 affects Vim. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-41965?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2024-41965 have an EU (EUVD) identifier?
Yes. CVE-2024-41965 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-39296.
When was CVE-2024-41965 published?
CVE-2024-41965 was published on 2024-08-01 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Vim

All CVEs affecting Vim →

Other CWE-415 (Double Free) vulnerabilities

Browse all CWE-415 (Double Free) vulnerabilities →