Vulnerability 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 Score
LOW
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Vim | Vim | < 9.0.2121 |
Related Weaknesses (CWE)
References
- http://www.openwall.com/lists/oss-security/2023/11/22/3Mailing ListPatchThird Party Advisory
- https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huafExploit
- https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bbPatch
- https://github.com/vim/vim/pull/13552Issue TrackingPatch
- https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53qExploitVendor Advisory
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://security.netapp.com/advisory/ntap-20240105-0001/
- http://www.openwall.com/lists/oss-security/2023/11/22/3Mailing ListPatchThird Party Advisory
- https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huafExploit
- https://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bbPatch
- https://github.com/vim/vim/pull/13552Issue TrackingPatch
- https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53qExploitVendor Advisory
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
FAQ
What is CVE-2023-48706?
CVE-2023-48706 is a vulnerability with a CVSS score of 3.6 (LOW). 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 sub...
How severe is CVE-2023-48706?
CVE-2023-48706 has been rated LOW with a CVSS base score of 3.6/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-48706?
Check the references section above for vendor advisories and patch information. Affected products include: Vim Vim.