CVE-2023-48706

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

Published Nov 22, 2023 CVSS 3.1 · 3.6 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2023-52745 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.
Ubuntu USN Ubuntu USN USN-6557-1 Vim vulnerabilities
History
Type Values Removed Values Added
First Time appeared Fedoraproject
Fedoraproject fedora
Neovim
Neovim neovim
Netapp
Netapp hci Compute Node
CPEs cpe:2.3:a:neovim:neovim:*:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*
cpe:2.3:o:netapp:hci_compute_node:-:*:*:*:*:*:*:*
Vendors & Products Fedoraproject
Fedoraproject fedora
Neovim
Neovim neovim
Netapp
Netapp hci Compute Node
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 23, 2026, 5:19 PM
Reserved
Nov 17, 2023, 7:43 PM
Status
Analyzed
Published
Nov 22, 2023, 10:15 PM
Modified
Sep 17, 2026, 5:59 PM
Severity
Low
Public date
Nov 22, 2023, 12:00 AM