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 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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*

History

05 Jan 2024, 18:15

Type Values Removed Values Added
References
  • () https://security.netapp.com/advisory/ntap-20240105-0001/ -

17 Dec 2023, 03:15

Type Values Removed Values Added
References
  • () https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/ -
  • () https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/ -

01 Dec 2023, 17:54

Type Values Removed Values Added
References () https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb - () https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb - Patch
References () https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q - () https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q - Exploit, Vendor Advisory
References () https://github.com/vim/vim/pull/13552 - () https://github.com/vim/vim/pull/13552 - Issue Tracking, Patch
References () http://www.openwall.com/lists/oss-security/2023/11/22/3 - () http://www.openwall.com/lists/oss-security/2023/11/22/3 - Mailing List, Patch, Third Party Advisory
References () https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf - () https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf - Exploit
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 4.7
CPE cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*

24 Nov 2023, 15:24

Type Values Removed Values Added
New CVE

Information

Published : 2023-11-22 22:15

Updated : 2024-02-05 00:22


NVD link : CVE-2023-48706

Mitre link : CVE-2023-48706

CVE.ORG link : CVE-2023-48706


JSON object : View

Products Affected

vim

  • vim
CWE
CWE-416

Use After Free