{"id":"CVE-2024-47814","state":"PUBLISHED","title":"use-after-free when closing buffers in Vim","description":"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.","publishedAt":"2024-10-07T21:16:01.796Z","updatedAt":"2025-11-03T20:40:54.041Z","severity":{"score":3.9,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["vim vim"],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< v9.1.0764","status":"affected"}]}],"references":["https://github.com/vim/vim/security/advisories/GHSA-rj48-v4mq-j4vg","https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3","https://security.netapp.com/advisory/ntap-20250411-0009/","https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/47xxx/CVE-2024-47814.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-47814","state":"PUBLISHED","datePublished":"2024-10-07T21:16:01.796Z","dateUpdated":"2025-11-03T20:40:54.041Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-10-03T14:06:12.637Z"},"containers":{"cna":{"title":"use-after-free when closing buffers in Vim","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"vim","product":"vim","versions":[{"version":"< v9.1.0764","status":"affected"}]}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-rj48-v4mq-j4vg","name":"https://github.com/vim/vim/security/advisories/GHSA-rj48-v4mq-j4vg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3","name":"https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":3.9,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"CWE-416: Use After Free","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-10-07T21:16:01.796Z"},"source":{"advisory":"GHSA-rj48-v4mq-j4vg","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-08T14:12:43.174675Z","id":"CVE-2024-47814","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-08T14:12:51.349Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.netapp.com/advisory/ntap-20250411-0009/"},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:40:54.041Z"}}]}}}