
CVE catalog
CVE-2023-48706
vim: CVE-2023-48706
- Severity
- Medium · CVSS 4.7
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.54% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | vim | sid | 2:9.2.0858-1 | fixed |
| Debian | vim | forky | 2:9.2.0858-1 | fixed |
| Debian | vim | trixie | 2:9.1.1230-2 | fixed |
| Debian | vim | bookworm | 2:9.0.1378-2+deb12u2 | vulnerable |
| Cpe | fedora | Not reported | Not reported | unknown |
| Cpe | hci_compute_node | Not reported | Not reported | unknown |
| Cpe | neovim | Not reported | Not reported | unknown |
| Cpe | vim | Not reported | 9.0.2121 | fixed |
| Alpine | vim | 3.19 | 9.0.2127-r0 | fixed |
| Alpine | vim | 3.20 | 9.0.2127-r0 | fixed |
| Alpine | vim | 3.21 | 9.0.2127-r0 | fixed |
| Alpine | vim | 3.22 | 9.0.2127-r0 | fixed |
| Alpine | vim | 3.23 | 9.0.2127-r0 | fixed |
| Ubuntu | vim | 22.04 | 2:8.2.2434-3ubuntu3 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.2434-3ubuntu4 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3565-1ubuntu1 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3565-1ubuntu2 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3565-1ubuntu3 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3565-1ubuntu5 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu1 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.1 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.3 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.4 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.5 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.7 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.8 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.9 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.10 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.11 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.12 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.13 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.15 | fixed |
| Ubuntu | vim | 24.04 | 2:9.0.1672-1ubuntu2 | vulnerable |
| Ubuntu | vim | 24.04 | 2:9.0.2087-1ubuntu1 | vulnerable |
| Ubuntu | vim | 24.04 | 2:9.0.2116-1ubuntu1 | vulnerable |
| Ubuntu | vim | 24.04 | 2:9.0.2116-1ubuntu2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | vim | source | sid | 2:9.0.2189-1 | unimportant | Not reported | Not reported |
| Debian | vim | source | forky | 2:9.0.2189-1 | unimportant | Not reported | Not reported |
| Debian | vim | source | trixie | 2:9.0.2189-1 | unimportant | Not reported | Not reported |
| Debian | vim | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
| Cpe | vim | cpe | Not reported | 9.0.2121 | Not reported | NVD-CVE-2023-48706 | Not reported |
| Alpine | vim | apk | 3.19 | 9.0.2127-r0 | Not reported | ALPINE-CVE-2023-48706 | Not reported |
| Alpine | vim | apk | 3.20 | 9.0.2127-r0 | Not reported | ALPINE-CVE-2023-48706 | Not reported |
| Alpine | vim | apk | 3.21 | 9.0.2127-r0 | Not reported | ALPINE-CVE-2023-48706 | Not reported |
| Alpine | vim | apk | 3.22 | 9.0.2127-r0 | Not reported | ALPINE-CVE-2023-48706 | Not reported |
| Alpine | vim | apk | 3.23 | 9.0.2127-r0 | Not reported | ALPINE-CVE-2023-48706 | Not reported |
| Ubuntu | vim | deb | 22.04 | 2:8.2.3995-1ubuntu2.15 | Not reported | UBUNTU-CVE-2023-48706 | Not reported |
| Ubuntu | vim | deb | 24.04 | 2:9.0.2116-1ubuntu2 | Not reported | UBUNTU-CVE-2023-48706 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2024_0783-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2023-48706]
- [https://osv.dev/vulnerability/ALPINE-CVE-2023-48706]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-48706]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-48706]
- [https://security-tracker.debian.org/tracker/CVE-2023-48706]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-48706.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-2997.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]