CVE-2024-41965
CVE-2024-41965 is a medium-severity vulnerability in Neovim 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
- Severity: Medium (CVSS 3.x base score 4.2)
- EPSS exploit prediction: 0% (27th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-39296
- Weakness: CWE-415
- Affected product: Neovim
- Published:
- Last modified:
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% (27th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-41965?
- CVE-2024-41965 primarily affects Neovim. In total, 3 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact 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-09-17.
References
- https://github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c
- https://github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f
- https://security.netapp.com/advisory/ntap-20241115-0002/
Affected products (3)
- cpe:2.3:o:netapp:hci_compute_node:-:*:*:*:*:*:*:*
- cpe:2.3:a:neovim:neovim:*:*:*:*:*:*:*:*
- cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
More vulnerabilities in Neovim
- CVE-2019-12735 — High (CVSS 8.6): getchar.c in Vim before 8.1.1365 and Neovim before 0.3.6 allows remote attackers to execute arbitrary OS commands via…
- CVE-2023-5535 — High (CVSS 7.8): Use After Free in GitHub repository vim/vim prior to v9.0.2010.
- CVE-2023-4781 — High (CVSS 7.8): Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
- CVE-2023-4752 — High (CVSS 7.8): Use After Free in GitHub repository vim/vim prior to 9.0.1858.
- CVE-2023-4750 — High (CVSS 7.8): Use After Free in GitHub repository vim/vim prior to 9.0.1857.
- CVE-2023-4733 — High (CVSS 7.8): Use After Free in GitHub repository vim/vim prior to 9.0.1840.
Other CWE-415 (Double Free) vulnerabilities
- CVE-2018-0101 — Critical (CVSS 10.0): A vulnerability in the Secure Sockets Layer (SSL) VPN functionality of the Cisco Adaptive Security Appliance (ASA)…
- CVE-2026-89078 — Critical (CVSS 9.9): GitLab has remediated an issue in GitLab CE/EE affecting all versions from 19.2 before 19.2.7, 19.3 before 19.3.3, and…
- CVE-2026-56971 — Critical (CVSS 9.8): In AudioSession::SendInternalEvent of AudioSession.cpp, there is a possible Double Free due to a logic error in the…
- CVE-2026-95901 — Critical (CVSS 9.8): Double free in Windows Microsoft DirectMusic allows an unauthorized attacker to execute code over a network.
- CVE-2026-88218 — Critical (CVSS 9.8): Double free in Windows DNS allows an unauthorized attacker to execute code over a network.
- CVE-2026-58968 — Critical (CVSS 9.8): In oapvd_vlc_metadata of oapv_vlc.c, there is a possible memory corruption due to a double free. This could lead to…