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

- Priority: **Routine**
- Reason: Not severe (CVSS 3.6, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-11-22 · Modified: 2026-06-23
- Aliases: ALPINE-CVE-2023-48706, UBUNTU-CVE-2023-48706, DEBIAN-CVE-2023-48706
- Record: https://cvemate.com/vulnerability/CVE-2023-48706 · JSON: https://cvemate.com/vulnerability/CVE-2023-48706/json

## 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.
```

## Signals

- CVSS: 4.7 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.561%, percentile 48.095%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github)

## Affected

- alpine vim (Alpine Linux): \< 9.0.2127-r0
- debian vim (Debian): All versions (No fix recorded) \| \< 2:9.0.2189-1
- ubuntu vim (Ubuntu): \< 2:8.2.3995-1ubuntu2.15 \| \< 2:9.0.2116-1ubuntu2
- fedoraproject fedora: 38 \| 39
- neovim neovim: ≤ 0.9.5
- netapp hci\_compute\_node: na
- vim vim: \< 9.0.2121

## References

- <https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q>
- <https://github.com/vim/vim/pull/13552>
- <https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb>
- <https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf>
- <http://www.openwall.com/lists/oss-security/2023/11/22/3>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/>
- <https://security.netapp.com/advisory/ntap-20240105-0001/>
- <https://security.alpinelinux.org/vuln/CVE-2023-48706>
- <https://ubuntu.com/security/CVE-2023-48706>
- <https://ubuntu.com/security/notices/USN-6557-1>
- <https://www.cve.org/CVERecord?id=CVE-2023-48706>
- <https://security-tracker.debian.org/tracker/CVE-2023-48706>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-48706>

---

Data as of 2026-12-05T04:02:37.354Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
