CVE-2023-46246
published 2023-10-27CVE-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
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:9.0.2087-1 (forky) | vim 2:9.0.2087-1 (forky) |
| msrc | cbl2_vim_9.0.2112-1_on_cbl_mariner_2.0 | — | — |
| vim | vim | < 9.0.2068 | 9.0.2068 |
| vim | vim | <= 9.0.2067 | — |
| vim | vim | >= 0 < 2:9.0.2087-1 | 2:9.0.2087-1 |
| vim | vim | >= 0 < 2:9.0.2087-1 | 2:9.0.2087-1 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.21 | 2:8.1.2269-1ubuntu5.21 |
| vim | vim | >= 0 < 2:8.2.3995-1ubuntu2.15 | 2:8.2.3995-1ubuntu2.15 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm15 | 2:7.4.052-1ubuntu3.1+esm15 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm22 | 2:7.4.1689-3ubuntu1.5+esm22 |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.13+esm7 | 2: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.
OSV
vim vulnerabilities
osv·2023-12-14·CVSS 5.5
CVE-2022-1725 [MEDIUM] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim could be made to dereference invalid memory. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04
LTS. (CVE-2022-1725)
It was discovered that Vim could be made to recurse infinitely. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS,
Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2022-1771)
It was discovered that Vim could be made to write out of bounds with a put
command. An attacker could possibly use this issue to cause a denial of
service or execute arbitrary code. This issue only affected Ubuntu 22.04
LTS. (CVE-2022-1886)
It was discovered tha
OSV
CVE-2023-46246: Vim is an improved version of the good old UNIX editor Vi
osv·2023-10-27·CVSS 5.5
CVE-2023-46246 [MEDIUM] CVE-2023-46246: Vim is an improved version of the good old UNIX editor Vi
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.
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2023-12-14·CVSS 5.5
CVE-2023-48706 [MEDIUM] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim could be made to dereference invalid memory. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04
LTS. (CVE-2022-1725)
It was discovered that Vim could be made to recurse infinitely. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS,
Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2022-1771)
It was discovered that Vim could be made to write out of bounds with a put
command. An attacker could possibly use this issue to cause a denial of
service or execute arbitrary code. This issue only affec
Red Hat
vim: Integer Overflow in :history command
vendor_redhat·2023-10-27·CVSS 4.0
CVE-2023-46246 [MEDIUM] CWE-190 vim: Integer Overflow in :history command
vim: Integer Overflow in :history command
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.
Statement: Red Hat Product Security has rated this issue as having a Low security impact, because the "victim" has to run an untrusted file IN SCRIPT MODE. Someone who is running untrusted files in script mode is
Microsoft
Integer Overflow in :history command in Vim
vendor_msrc·2023-10-10·CVSS 5.5
CVE-2023-46246 [MEDIUM] CWE-190 Integer Overflow in :history command in Vim
Integer Overflow in :history command in Vim
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.micro
Debian
CVE-2023-46246: vim - Vim is an improved version of the good old UNIX editor Vi. Heap-use-after-free i...
vendor_debian·2023·CVSS 4.0
CVE-2023-46246 [MEDIUM] CVE-2023-46246: vim - Vim is an improved version of the good old UNIX editor Vi. Heap-use-after-free i...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 2:9.0.2087-1)
sid: resolved (fixed in 2:9.0.2087-1)
trixie: resolved (fixed in 2:9.0.2087-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/vim/vim/commit/9198c1f2b1ddecde22af918541e0de2a32f0f45ahttps://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgmhttps://lists.fedoraproject.org/archives/list/[email protected]/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/https://lists.fedoraproject.org/archives/list/[email protected]/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/https://security.netapp.com/advisory/ntap-20231208-0006/https://github.com/vim/vim/commit/9198c1f2b1ddecde22af918541e0de2a32f0f45ahttps://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgmhttps://lists.fedoraproject.org/archives/list/[email protected]/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/https://lists.fedoraproject.org/archives/list/[email protected]/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/https://security.netapp.com/advisory/ntap-20231208-0006/
2023-10-27
Published