4.7

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

Analyzed
AliasesALPINE-CVE-2023-48706UBUNTU-CVE-2023-48706DEBIAN-CVE-2023-48706
Published 22-11-2023Last modified 23-06-2026

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.

Priority
Routine

Not severe (CVSS 3.6, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.7/10
010
Medium · v3.1 (NVD)
EPSS score
0.56%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2github

Advisory lineage

Upstream 0 · Downstream 5 · Related 4

Timeline

  1. 22-11-2023
    PublishedVulnerability first disclosed.
  2. 23-06-2026
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • githubUnverified

    Vim

    Maturity: poc

  • githubUnverified

    Crash Report

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

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
Neovim1 product
Netapp1 product
Ubuntu1 product
  • vim< 2:8.2.3995-1ubuntu2.15 | < 2:9.0.2116-1ubuntu2
Vim1 product

7 vendors · 7 products

References

14 links
Show all 14 references