Medium severity · published Nov 22, 2023
CVE-2023-48706
Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free vulnerability
4.7
CVSS
0.5%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
Attack vector
Local
Complexity
High
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 45% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FE
Fedora · Fedoraproject
38; 39 · source: NVD
HC
Hci Compute Node · Netapp
All versions, or not specified · source: NVD
NE
Neovim · Neovim
through 0.9.5 · source: NVD
VI
Vim · Vim
before 9.0.2121 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-48706
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-48706
Mailing List
http://www.openwall.com/lists/oss-security/2023/11/22/3
Exploit
https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf
Patch
https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb
Issue Tracking
https://github.com/vim/vim/pull/13552
Exploit
https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q
Vendor Advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/
More from Fedora
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CVE-2021-44026
Roundcube Webmail SQL Injection Vulnerability
9.8
CVE-2021-42013
Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)
