CVE catalog

CVE-2023-48706

vim: CVE-2023-48706

[CVE catalog]

Severity
Medium · CVSS 4.7CVSS: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.

DistributionPackageReleaseVersionStatus
Debianvimsid2:9.2.0858-1fixed
Debianvimforky2:9.2.0858-1fixed
Debianvimtrixie2:9.1.1230-2fixed
Debianvimbookworm2:9.0.1378-2+deb12u2vulnerable
CpefedoraNot reportedNot reportedunknown
Cpehci_compute_nodeNot reportedNot reportedunknown
CpeneovimNot reportedNot reportedunknown
CpevimNot reported9.0.2121fixed
Alpinevim3.199.0.2127-r0fixed
Alpinevim3.209.0.2127-r0fixed
Alpinevim3.219.0.2127-r0fixed
Alpinevim3.229.0.2127-r0fixed
Alpinevim3.239.0.2127-r0fixed
Ubuntuvim22.042:8.2.2434-3ubuntu3vulnerable
Ubuntuvim22.042:8.2.2434-3ubuntu4vulnerable
Ubuntuvim22.042:8.2.3565-1ubuntu1vulnerable
Ubuntuvim22.042:8.2.3565-1ubuntu2vulnerable
Ubuntuvim22.042:8.2.3565-1ubuntu3vulnerable
Ubuntuvim22.042:8.2.3565-1ubuntu5vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu1vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.1vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.3vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.4vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.5vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.7vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.8vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.9vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.10vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.11vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.12vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.13vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.15fixed
Ubuntuvim24.042:9.0.1672-1ubuntu2vulnerable
Ubuntuvim24.042:9.0.2087-1ubuntu1vulnerable
Ubuntuvim24.042:9.0.2116-1ubuntu1vulnerable
Ubuntuvim24.042:9.0.2116-1ubuntu2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianvimsourcesid2:9.0.2189-1unimportantNot reportedNot reported
Debianvimsourceforky2:9.0.2189-1unimportantNot reportedNot reported
Debianvimsourcetrixie2:9.0.2189-1unimportantNot reportedNot reported
Debianvimsourcebookworm(unfixed)unimportantNot reportedNot reported
CpevimcpeNot reported9.0.2121Not reportedNVD-CVE-2023-48706Not reported
Alpinevimapk3.199.0.2127-r0Not reportedALPINE-CVE-2023-48706Not reported
Alpinevimapk3.209.0.2127-r0Not reportedALPINE-CVE-2023-48706Not reported
Alpinevimapk3.219.0.2127-r0Not reportedALPINE-CVE-2023-48706Not reported
Alpinevimapk3.229.0.2127-r0Not reportedALPINE-CVE-2023-48706Not reported
Alpinevimapk3.239.0.2127-r0Not reportedALPINE-CVE-2023-48706Not reported
Ubuntuvimdeb22.042:8.2.3995-1ubuntu2.15Not reportedUBUNTU-CVE-2023-48706Not reported
Ubuntuvimdeb24.042:9.0.2116-1ubuntu2Not reportedUBUNTU-CVE-2023-48706Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References