CVE-2023-48706

Public Exploit
Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite

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.

Category

3.6
CVSS
Severity: Low
CVSS 3.1 •
EPSS 0.09%
Vendor Advisory github.com
Affected: vim vim
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-48706?
CVE-2023-48706 has been scored as a low severity vulnerability.
How to fix CVE-2023-48706?
To fix CVE-2023-48706, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-48706 being actively exploited in the wild?
It is possible that CVE-2023-48706 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-48706?
CVE-2023-48706 affects vim vim.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.