# CVE-2024-41965: Vim < v9.1.0648 has a double-free in dialog_changed()

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 18% of CVEs (2026-11-30)
- Published: 2024-08-01T21:44:09.056Z
- Modified: 2026-09-17T17:59:23.527Z
- Weaknesses: CWE-415, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vim vim: < 9.1.0648; before 9.1.0648
- netapp hci_compute_node: no versions given
- neovim neovim: from 0.10.0 before 0.10.2

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f> (vendor-advisory)
- <https://github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c> (patch)
- <https://security.netapp.com/advisory/ntap-20241115-0002/> (vendor-advisory)

## Sources

- CVE List: [CVE-2024-41965](https://www.cve.org/CVERecord?id=CVE-2024-41965), CVE Terms of Use, modified 2024-11-15
- NVD: [CVE-2024-41965](https://nvd.nist.gov/vuln/detail/CVE-2024-41965), Public domain, modified 2026-09-17

---

Page: https://cve.day/CVE-2024-41965 · Whole record: https://cve.day/CVE-2024-41965.json · Rebuilt by cve.day 2026-11-25T22:58:43.531Z
