Vim is an open source, command line text editor. A use-after-free was found in Vim < 9.1.0764. When closing a buffer (visible in a window) a BufWinLeave auto command can cause an use-after-free if this auto command happens to re-open the same buffer in a new split window. Impact is low since the user must have intentionally set up such a strange auto command and run some buffer unload commands. However this may lead to a crash. This issue has been addressed in version 9.1.0764 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"vim:vim": [
"< 9.1.0764"
]
},
"database_specific": {
"status": "Modified"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2024-47814",
"id": "CVE-2024-47814",
"imported": "2026-12-02T14:11:18.541Z",
"modified": "2026-06-17T07:57:48.100Z",
"published": "2024-10-07T22:15:03.657Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2024-47814"
},
{
"affected": {
"vim:vim": [
"< v9.1.0764"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-42697",
"id": "EUVD-2024-42697",
"imported": "2026-12-02T14:11:20.030Z",
"modified": "2025-11-03T20:40:54Z",
"published": "2024-10-07T21:16:01Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2024-42697"
}
]
}