{"id":"CVE-2023-48706","published":"2023-11-22T22:03:39Z","modified":"2026-06-23T17:19:11Z","title":"Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite","vendor":"vim","product":"vim","tier":"tail","description":{"text":"Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free vulnerability. When executing a `:s` command for the very first time and using a sub-replace-special atom inside the substitution part, it is possible that the recursive `:s` call causes free-ing of memory which may later then be accessed by the initial `:s` command. The user must intentionally execute the payload and the whole process is a bit tricky to do since it seems to work only reliably for the very first :s command. It may also cause a crash of Vim. Version 9.0.2121 contains a fix for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00561,"percentile":0.4754,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vim/vim/pull/13552","tags":["x_refsource_MISC"]},{"url":"https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb","tags":["x_refsource_MISC"]},{"url":"https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2023/11/22/3","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240105-0001/","tags":[]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":9.51},{"name":"CVSS severity","points":2.52}]},"vendorSlug":"vim","affectedVersions":[{"vendor":"vim","product":"vim","versions":["< 9.0.2121"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2023-12-07T16:10:22.120197Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-52745","exploited":false,"provenance":"source"}}