CVE-2023-48706CWE-416

CVE-2023-48706

Low · published November 23, 2023

CVSS v3.1
3.6
EPSS
1%
Percentile
44.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
3.6 · LOW
Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00544 · 44.8th percentile
Weakness
CWE-416 · Use After Free
Published
2023-11-23T03:15Z
Affected products (5)
ProductVersionsFixed in
fedoraproject/fedoraall versions—
fedoraproject/fedoraall versions—
netapp/hci_compute_nodeall versions—
neovim/neovim≤ 0.9.5—
vim/vim< 9.0.21219.0.2121
References (16)
http://www.openwall.com/lists/oss-security/2023/11/22/3 · [email protected]https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf · [email protected]https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb · [email protected]https://github.com/vim/vim/pull/13552 · [email protected]https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q · [email protected]https://lists.fedoraproject.org/archives/list/[email protected]/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/ · [email protected]https://lists.fedoraproject.org/archives/list/[email protected]/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/ · [email protected]https://security.netapp.com/advisory/ntap-20240105-0001/ · [email protected]http://www.openwall.com/lists/oss-security/2023/11/22/3 · af854a3a-2127-422b-91ae-364da2661108https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf · af854a3a-2127-422b-91ae-364da2661108https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb · af854a3a-2127-422b-91ae-364da2661108https://github.com/vim/vim/pull/13552 · af854a3a-2127-422b-91ae-364da2661108https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q · af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/[email protected]/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/ · af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/[email protected]/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/ · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20240105-0001/ · af854a3a-2127-422b-91ae-364da2661108
EPSS history
Timeline
  • 22 NOV 22:03Z
    Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite
    cvelistv5