CVE-2024-41965

Vim < v9.1.0648 has a double-free in dialog_changed()

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.

Categories

4.2
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.02%
Vendor Advisory github.com
Affected: vim vim
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-41965?
CVE-2024-41965 has been scored as a medium severity vulnerability.
How to fix CVE-2024-41965?
To fix CVE-2024-41965, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-41965 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-41965 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-41965?
CVE-2024-41965 affects vim vim.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.