{"id":"CVE-2024-41965","title":"Vim is an open source command line text editor","summary":"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…","severity":"medium","cvss":4.2,"cvssVector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","cwe":["CWE-416","CWE-415"],"vendor":"neovim","product":"neovim","affected":["hci_compute_node","neovim >= 0.10.0, < 0.10.2","vim < 9.1.0648"],"patched":["neovim 0.10.2","vim 9.1.0648"],"published":"2024-08-01","updated":"2026-09-17","sourceUpdated":"2026-09-17T17:59:23.527","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-41965","references":[{"url":"https://github.com/vim/vim/commit/b29f4abcd4b3382fa746edd1d0562b7b48c","label":"security-advisories@github.com"},{"url":"https://github.com/vim/vim/security/advisories/GHSA-46pw-v7qw-xc2f","label":"security-advisories@github.com"},{"url":"https://security.netapp.com/advisory/ntap-20241115-0002/","label":"af854a3a-2127-422b-91ae-364da2661108"}],"tags":["nvd"],"epss":0.0033,"epssPercentile":0.26412,"ingestedAt":"2026-09-17T18:25:15.966Z","slug":"CVE-2024-41965","body":"## Overview\n\nVim 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.\n\n## Affected\n\n- `hci_compute_node`\n- `neovim >= 0.10.0, < 0.10.2`\n- `vim < 9.1.0648`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `neovim 0.10.2`\n- `vim 9.1.0648`","depth":"sunlit","depthScore":23,"depthScoreParts":{"impact":23.1,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}