# CVE-2023-48706: Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite

- Severity: Low 3.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-11-22T22:03:39.503Z
- Modified: 2026-09-17T17:59:18.660Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vim vim: < 9.0.2121; before 9.0.2121
- fedoraproject fedora: 38; 39
- netapp hci_compute_node: no versions given
- neovim neovim: up to 0.9.5

## Every score

- GitHub_M: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q> (exploit, vendor-advisory)
- <https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf> (exploit)
- <https://github.com/vim/vim/pull/13552> (issue-tracking, patch)
- <https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb> (patch)
- <http://www.openwall.com/lists/oss-security/2023/11/22/3> (mailing-list, patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240105-0001/> (vendor-advisory)

## Sources

- CVE List: [CVE-2023-48706](https://www.cve.org/CVERecord?id=CVE-2023-48706), CVE Terms of Use, modified 2026-06-23
- NVD: [CVE-2023-48706](https://nvd.nist.gov/vuln/detail/CVE-2023-48706), Public domain, modified 2026-09-17

---

Page: https://cve.day/CVE-2023-48706 · Whole record: https://cve.day/CVE-2023-48706.json · Rebuilt by cve.day 2026-11-25T22:58:30.687Z
