cbcvebase.
CVE-2023-48706
published 2023-11-22

CVE-2023-48706: 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…

PriorityP417medium4.7CVSS 3.1
AVLACHPRNUIRSUCNINAH
EPSS
0.44%
35.8th percentile
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.

Affected

10 ranges
VendorProductVersion rangeFixed in
debianvim< vim 2:9.0.2189-1 (forky)vim 2:9.0.2189-1 (forky)
msrccbl2_vim_9.0.2121-1_on_cbl_mariner_2.0
vimvim< 9.0.21219.0.2121
vimvim>= 0 < 2:9.0.2189-12:9.0.2189-1
vimvim>= 0 < 2:9.0.2189-12:9.0.2189-1
vimvim>= 0 < 2:8.1.2269-1ubuntu5.212:8.1.2269-1ubuntu5.21
vimvim>= 0 < 2:8.2.3995-1ubuntu2.152:8.2.3995-1ubuntu2.15
vimvim>= 0 < 2:7.4.052-1ubuntu3.1+esm152:7.4.052-1ubuntu3.1+esm15
vimvim>= 0 < 2:7.4.1689-3ubuntu1.5+esm222:7.4.1689-3ubuntu1.5+esm22
vimvim>= 0 < 2:8.0.1453-1ubuntu1.13+esm72:8.0.1453-1ubuntu1.13+esm7

CVSS provenance

nvdv3.14.7MEDIUMCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_ubuntu5.5MEDIUM
vendor_msrc4.7MEDIUM
vendor_debian3.6LOW
vendor_redhat3.6LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.