cbcvebase.
CVE-2023-46246
published 2023-10-27

CVE-2023-46246: 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`…

PriorityP421medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.37%
29.2th percentile
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.

Affected

11 ranges
VendorProductVersion rangeFixed in
debianvim< vim 2:9.0.2087-1 (forky)vim 2:9.0.2087-1 (forky)
msrccbl2_vim_9.0.2112-1_on_cbl_mariner_2.0
vimvim< 9.0.20689.0.2068
vimvim<= 9.0.2067
vimvim>= 0 < 2:9.0.2087-12:9.0.2087-1
vimvim>= 0 < 2:9.0.2087-12:9.0.2087-1
vimvim>= 0 < 2:8.1.2269-1ubuntu5.212:8.1.2269-1ubuntu5.21
vimvim>= 0 < 2:8.2.3995-1ubuntu2.152:8.2.3995-1ubuntu2.15
vimvim>= 0 < 2:7.4.052-1ubuntu3.1+esm152:7.4.052-1ubuntu3.1+esm15
vimvim>= 0 < 2:7.4.1689-3ubuntu1.5+esm222:7.4.1689-3ubuntu1.5+esm22
vimvim>= 0 < 2:8.0.1453-1ubuntu1.13+esm72:8.0.1453-1ubuntu1.13+esm7

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_msrc5.5MEDIUM
vendor_ubuntu5.5MEDIUM
vendor_debian4.0LOW
vendor_redhat4.0MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.