CVE-2023-46246
Last modified
CVE-2023-46246 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.37% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Vim | Vim | < 9.0.2068 |
References
- https://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgmExploit, Third Party Advisory
- https://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgmExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-46246?
How severe is CVE-2023-46246?
How do I fix CVE-2023-46246?
Are you affected by CVE-2023-46246?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
