{"id":"CVE-2024-47814","published":"2024-10-07T21:16:01Z","modified":"2025-11-03T20:40:54Z","title":"use-after-free when closing buffers in Vim","vendor":"vim","product":"vim","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.9,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00356,"percentile":0.21683,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-rj48-v4mq-j4vg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20250411-0009/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html","tags":[]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":4.34},{"name":"CVSS severity","points":2.73}]},"vendorSlug":"vim","affectedVersions":[{"vendor":"vim","product":"vim","versions":["< v9.1.0764"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-08T14:12:43.174675Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-42697","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vim-vim-cve-2019-20807","parents":[{"from":"CVE-2022-3352","to":"CVE-2024-47814","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/buffer.c"],"commits":["https://github.com/vim/vim/commit/ef976323e770315b5fca544efb6b2faa25674d15","https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3c1ea5df187641"],"basis":"shared function","functions":["can_unload_buffer"]}]},{"from":"CVE-2023-4733","to":"CVE-2024-47814","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/ex_cmds.c"],"commits":["https://github.com/vim/vim/commit/e1dc9a627536304bc4f738c21e909ad9fcf3974c","https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3c1ea5df187641"],"basis":"shared function","functions":["do_ecmd"]}]},{"from":"CVE-2024-43374","to":"CVE-2024-47814","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/buffer.c","src/ex_cmds.c"],"commits":["https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8","https://github.com/vim/vim/commit/51b62387be93c65fa56bbabe1c3c1ea5df187641"],"basis":"shared function","functions":["do_ecmd"]}]}]}}