CVE-2023-46246

Public Exploit
Integer Overflow in :history command in Vim

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.

Category

4.0
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.01%
Third-Party Advisory github.com
Affected: vim vim
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-46246?
CVE-2023-46246 has been scored as a medium severity vulnerability.
How to fix CVE-2023-46246?
To fix CVE-2023-46246, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-46246 being actively exploited in the wild?
It is possible that CVE-2023-46246 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-46246?
CVE-2023-46246 affects vim vim.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.