{"id":"CVE-2023-48706","aliases":["CVE-2023-48706"],"related":[],"kind":"vulnerability","state":"published","title":"Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Vim es un editor UNIX que, antes de la versión 9.0.2121, tiene una vulnerabilidad de heap-use-after-free. Al ejecutar un comando `:s` por primera vez y utilizar un átomo subreemplazante especial dentro de la parte de sustitución, es posible que la llamada recursiva `:s` provoque la liberación de memoria a la que luego se podrá acceder por el comando inicial `:s`. El usuario debe ejecutar intencionalmente el payload y todo el proceso es un poco complicado de realizar ya que parece funcionar solo de manera confiable para el primer comando :s. También puede provocar un bloqueo de Vim. La versión 9.0.2121 contiene una solución para este problema.","source":"nvd"}],"published":"2023-11-22T22:03:39.503Z","modified":"2026-09-17T17:59:18.660Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","score":3.6,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L","score":3.6,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":"< 9.0.2121","status":"affected"}],"vendor":"vim","product":"vim","source":"cvelist"},{"ranges":[{"status":"affected","version":"38"},{"status":"affected","version":"39"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"hci_compute_node","cpe":"cpe:2.3:o:netapp:hci_compute_node:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"0.9.5"}],"vendor":"neovim","product":"neovim","cpe":"cpe:2.3:a:neovim:neovim:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"9.0.2121"}],"vendor":"vim","product":"vim","cpe":"cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q","tags":["exploit","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/pull/13552","tags":["issue-tracking","patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb","tags":["patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf","tags":["exploit","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2023/11/22/3","tags":["mailing-list","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20240105-0001/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2023-12-07T16:10:22.120Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-48706","url":"https://www.cve.org/CVERecord?id=CVE-2023-48706","licence":"CVE Terms of Use","modified":"2026-06-23T17:19:11.719Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-48706","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48706","licence":"Public domain","modified":"2026-09-17T17:59:18.660Z"}],"updatedAt":"2026-11-25T22:58:30.687Z","epss":{"score":0.00561,"percentile":0.48026,"date":"2026-12-01T12:00:22.000Z"}}