CVE & CISA-KEV Catalog

CVE-2023-48706

LOW
3.6
CVSS v3
NVD

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.

How to fix

Remediation Available
vimDebian
Fixed in:2:9.0.2189-1CVE-2023-48706
Fixed in:2:9.0.2189-1CVE-2023-48706
vimUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm15USN-6557-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm22USN-6557-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm7USN-6557-1
Fixed in:2:8.1.2269-1ubuntu5.21USN-6557-1
Fixed in:2:8.2.3995-1ubuntu2.15USN-6557-1
Fixed in:2:9.0.1000-4ubuntu3.3USN-6557-1
Fixed in:2:9.0.1672-1ubuntu2.2USN-6557-1
vim-athenaUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm15USN-6557-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm22USN-6557-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm7USN-6557-1
Fixed in:2:8.1.2269-1ubuntu5.21USN-6557-1
Fixed in:2:8.2.3995-1ubuntu2.15USN-6557-1
Fixed in:2:9.0.1000-4ubuntu3.3USN-6557-1
Fixed in:2:9.0.1672-1ubuntu2.2USN-6557-1
vim-gtkUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm15USN-6557-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm22USN-6557-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm7USN-6557-1
Fixed in:2:8.1.2269-1ubuntu5.21USN-6557-1
Fixed in:2:8.2.3995-1ubuntu2.15USN-6557-1
vim-gtk3Ubuntu
Fixed in:2:7.4.1689-3ubuntu1.5+esm22USN-6557-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm7USN-6557-1
Fixed in:2:8.1.2269-1ubuntu5.21USN-6557-1
Fixed in:2:8.2.3995-1ubuntu2.15USN-6557-1
Fixed in:2:9.0.1000-4ubuntu3.3USN-6557-1
Fixed in:2:9.0.1672-1ubuntu2.2USN-6557-1
vim-noxUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm15USN-6557-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm22USN-6557-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm7USN-6557-1
Fixed in:2:8.1.2269-1ubuntu5.21USN-6557-1
Fixed in:2:8.2.3995-1ubuntu2.15USN-6557-1
Fixed in:2:9.0.1000-4ubuntu3.3USN-6557-1
Fixed in:2:9.0.1672-1ubuntu2.2USN-6557-1
vim-tinyUbuntu
Fixed in:2:7.4.052-1ubuntu3.1+esm15USN-6557-1
Fixed in:2:7.4.1689-3ubuntu1.5+esm22USN-6557-1
Fixed in:2:8.0.1453-1ubuntu1.13+esm7USN-6557-1
Fixed in:2:8.1.2269-1ubuntu5.21USN-6557-1
Fixed in:2:8.2.3995-1ubuntu2.15USN-6557-1
Fixed in:2:9.0.1000-4ubuntu3.3USN-6557-1
Fixed in:2:9.0.1672-1ubuntu2.2USN-6557-1
xxdUbuntu
Fixed in:2:8.0.1453-1ubuntu1.13+esm7USN-6557-1
Fixed in:2:8.1.2269-1ubuntu5.21USN-6557-1
Fixed in:2:8.2.3995-1ubuntu2.15USN-6557-1
Fixed in:2:9.0.1000-4ubuntu3.3USN-6557-1
Fixed in:2:9.0.1672-1ubuntu2.2USN-6557-1
VimWindows application
Affected:9.0.2121Fixed in:9.0.2121Bram Moolenaar et al.

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityLow
AvailabilityLow

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L

Exploit Intelligence

0.44%probability of exploitation in 30 days
35thpercentile

Low risk: more likely to be exploited than 35% of all known CVEs.

References

Related Vulnerabilities

Other CWE-416 (Use After Free) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2019-0708Critical9.8100%KEV + Ransom-
CVE-2021-31166Critical9.8100%KEVFix
CVE-2015-5119Critical9.899%KEV-
CVE-2010-3962High8.197%KEV-
CVE-2015-0313Critical9.896%KEVFix
CVE-2017-9798High7.595%-Fix
Embed a live status badge for CVE-2023-48706
CVE-2023-48706 severity badge

Markdown

[![CVE-2023-48706](https://tridentstack.com/cve/badge/CVE-2023-48706.svg)](https://tridentstack.com/cve/CVE-2023-48706)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-48706"><img src="https://tridentstack.com/cve/badge/CVE-2023-48706.svg" alt="CVE-2023-48706"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-23.