CVE-2023-48706
Last modified
CVE-2023-48706 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. 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. EPSS estimates a 0.44% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Vim | Vim | < 9.0.2121 |
References
- http://www.openwall.com/lists/oss-security/2023/11/22/3Mailing List, Patch, Third Party Advisory
- https://github.com/vim/vim/pull/13552Issue Tracking, Patch
- https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53qExploit, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2023/11/22/3Mailing List, Patch, Third Party Advisory
- https://github.com/vim/vim/pull/13552Issue Tracking, Patch
- https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53qExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-48706?
How severe is CVE-2023-48706?
How do I fix CVE-2023-48706?
Are you affected by CVE-2023-48706?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
