Vulnerability Description
Vim is an improved version of the good old UNIX editor Vi. Heap-use-after-free in memory allocated in the function `ga_grow_inner` in in the file `src/alloc.c` at line 748, which is freed in the file `src/ex_docmd.c` in the function `do_cmdline` at line 1010 and then used again in `src/cmdhist.c` at line 759. When using the `:history` command, it's possible that the provided argument overflows the accepted value. Causing an Integer Overflow and potentially later an use-after-free. This vulnerability has been patched in version 9.0.2068.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Vim | Vim | < 9.0.2068 |
Related Weaknesses (CWE)
References
- https://github.com/vim/vim/commit/9198c1f2b1ddecde22af918541e0de2a32f0f45aPatch
- https://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgmExploitThird Party Advisory
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://security.netapp.com/advisory/ntap-20231208-0006/
- https://github.com/vim/vim/commit/9198c1f2b1ddecde22af918541e0de2a32f0f45aPatch
- https://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgmExploitThird Party Advisory
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://security.netapp.com/advisory/ntap-20231208-0006/
FAQ
What is CVE-2023-46246?
CVE-2023-46246 is a vulnerability with a CVSS score of 4.0 (MEDIUM). Vim is an improved version of the good old UNIX editor Vi. Heap-use-after-free in memory allocated in the function `ga_grow_inner` in in the file `src/alloc.c` at line 748, which is freed in the file ...
How severe is CVE-2023-46246?
CVE-2023-46246 has been rated MEDIUM with a CVSS base score of 4.0/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-46246?
Check the references section above for vendor advisories and patch information. Affected products include: Vim Vim.