CVE-2023-48706: Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite
Vulnerability summary
CVE-2023-48706 is a medium (CVSS 4.7) Use After Free vulnerability in fedoraproject fedora. EPSS estimates a 0.56% chance of exploitation in the next 30 days, higher than 48% of scored vulnerabilities. 2 public exploits are recorded.
Not severe (CVSS 3.6, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 4Timeline
- 22-11-2023PublishedVulnerability first disclosed.
- 23-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA3.6LowCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:LDiffers
- OSV · AlpineEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:LDiffers
- OSV · DebianEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.56%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.54% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundVim
Maturity: poc
Crash Report
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- vim< 9.0.2127-r0
Debian1 product
- vimAll versions (No fix recorded) | < 2:9.0.2189-1
Fedoraproject1 product
- fedoraEOL38 | 39
Neovim1 product
- neovim≤ 0.9.5
Netapp1 product
Ubuntu1 product
- vim< 2:8.2.3995-1ubuntu2.15 | < 2:9.0.2116-1ubuntu2
Vim1 product
- vim< 9.0.2121
7 vendors · 7 products
References
14 links- github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53qX Refsource CONFIRMREPORTExploitVendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- security.netapp.com/advisory/ntap-20240105-0001/Vendor Advisory