CVE-2023-48706
MEDIUM EPSS 35.3%
Published Nov 22, 20232y ago · Modified Jun 23, 20261w ago
4.7 CVSS 3.1
Published Nov 22, 2023 2y ago
Last Modified Jun 23, 2026 1w ago
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 Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H Attack Vector Local
Attack Complexity High
Privileges Required None
User Interaction Required
Scope Unchanged
Confidentiality None
Integrity None
Availability High
Threat Intelligence
EPSS Exploit Probability
35.3% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 1
CWE-416 Use After Free Memory Safety
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| vim | vim | * | <9.0.2121 |
References 8
- openwall.com http://www.openwall.com/lists/oss-security/2023/11/22/3
- github.com https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huaf
- github.com https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb
- github.com https://github.com/vim/vim/pull/13552
- github.com https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53q
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/
- security.netapp.com https://security.netapp.com/advisory/ntap-20240105-0001/
Remediation
- openwall.com http://www.openwall.com/lists/oss-security/2023/11/22/3
- github.com https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bb
- github.com https://github.com/vim/vim/pull/13552