
CVE catalog
CVE-2023-46246
vim: CVE-2023-46246
- Severity
- Medium · CVSS 4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.37% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | vim | sid | 2:9.2.0858-1 | fixed |
| Debian | vim | forky | 2:9.2.0858-1 | fixed |
| Debian | vim | trixie | 2:9.1.1230-2 | fixed |
| Debian | vim | bookworm | 2:9.0.1378-2+deb12u2 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.0197-4ubuntu5 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1144-1ubuntu1 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1401-1ubuntu1 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1401-1ubuntu2 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1401-1ubuntu3 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.1 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.3 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.4 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.6 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.7 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.8 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.9 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.10 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.11 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.12 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.13 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.13+esm1 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.13+esm3 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.13+esm4 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.13+esm5 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.13+esm6 | vulnerable |
| Ubuntu | vim | pro | 2:8.0.1453-1ubuntu1.13+esm7 | fixed |
| Ubuntu | vim | 20.04 | 2:8.1.0875-5ubuntu2 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.0875-5ubuntu3 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.0875-5ubuntu4 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu1 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu4 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.3 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.4 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.6 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.7 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.8 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.9 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.11 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.12 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.13 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.14 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.15 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.16 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.17 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.18 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.20 | vulnerable |
| Ubuntu | vim | 20.04 | 2:8.1.2269-1ubuntu5.21 | fixed |
| Ubuntu | vim | 22.04 | 2:8.2.2434-3ubuntu3 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.2434-3ubuntu4 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3565-1ubuntu1 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3565-1ubuntu2 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3565-1ubuntu3 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3565-1ubuntu5 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu1 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.1 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.3 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.4 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.5 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.7 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.8 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.9 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.10 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.11 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.12 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.13 | vulnerable |
| Ubuntu | vim | 22.04 | 2:8.2.3995-1ubuntu2.15 | fixed |
| Suse | vim | linux enterprise server 12 sp5 | 9.0.2103-17.26.1 | fixed |
| Suse | vim | linux enterprise server for sap applications 12 sp5 | 9.0.2103-17.26.1 | fixed |
| Suse | vim | linux enterprise micro 5.3 | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise micro 5.4 | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise module for basesystem 15 sp4 | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise module for desktop applications 15 sp4 | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise high performance computing 15 sp1-ltss | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise high performance computing 15 sp2-ltss | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise high performance computing 15 sp3-espos | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise high performance computing 15 sp3-ltss | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise server 15 sp1-ltss | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise server 15 sp2-ltss | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise server 15 sp3-ltss | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise server for sap applications 15 sp1 | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise server for sap applications 15 sp2 | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise server for sap applications 15 sp3 | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise micro 5.1 | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise micro 5.2 | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | enterprise storage 7.1 | 9.0.2103-150000.5.57.1 | fixed |
| Opensuse | vim | leap micro 5.3 | 9.0.2103-150000.5.57.1 | fixed |
| Opensuse | vim | leap micro 5.4 | 9.0.2103-150000.5.57.1 | fixed |
| Opensuse | vim | leap 15.4 | 9.0.2103-150000.5.57.1 | fixed |
| Suse | vim | linux enterprise micro 5.5 | 9.0.2103-150500.20.6.1 | fixed |
| Suse | vim | linux enterprise module for basesystem 15 sp5 | 9.0.2103-150500.20.6.1 | fixed |
| Suse | vim | linux enterprise module for desktop applications 15 sp5 | 9.0.2103-150500.20.6.1 | fixed |
| Opensuse | vim | leap 15.5 | 9.0.2103-150500.20.6.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | vim | source | sid | 2:9.0.2087-1 | unimportant | Not reported | Not reported |
| Debian | vim | source | forky | 2:9.0.2087-1 | unimportant | Not reported | Not reported |
| Debian | vim | source | trixie | 2:9.0.2087-1 | unimportant | Not reported | Not reported |
| Debian | vim | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
| Ubuntu | vim | deb | pro | 2:8.0.1453-1ubuntu1.13+esm7 | Not reported | UBUNTU-CVE-2023-46246 | Not reported |
| Ubuntu | vim | deb | 20.04 | 2:8.1.2269-1ubuntu5.21 | Not reported | UBUNTU-CVE-2023-46246 | Not reported |
| Ubuntu | vim | deb | 22.04 | 2:8.2.3995-1ubuntu2.15 | Not reported | UBUNTU-CVE-2023-46246 | Not reported |
| Suse | vim | rpm | linux enterprise server 12 sp5 | 9.0.2103-17.26.1 | Not reported | SUSE-SU-2023:4560-1 | Not reported |
| Suse | vim | rpm | linux enterprise server for sap applications 12 sp5 | 9.0.2103-17.26.1 | Not reported | SUSE-SU-2023:4560-1 | Not reported |
| Suse | vim | rpm | linux enterprise micro 5.3 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise micro 5.4 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise module for basesystem 15 sp4 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise module for desktop applications 15 sp4 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise high performance computing 15 sp1-ltss | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise high performance computing 15 sp2-ltss | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise high performance computing 15 sp3-espos | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise high performance computing 15 sp3-ltss | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise server 15 sp1-ltss | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise server 15 sp2-ltss | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise server 15 sp3-ltss | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise server for sap applications 15 sp1 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise server for sap applications 15 sp2 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise server for sap applications 15 sp3 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise micro 5.1 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise micro 5.2 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | enterprise storage 7.1 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Opensuse | vim | rpm | leap micro 5.3 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Opensuse | vim | rpm | leap micro 5.4 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Opensuse | vim | rpm | leap 15.4 | 9.0.2103-150000.5.57.1 | Not reported | SUSE-SU-2023:4587-1 | Not reported |
| Suse | vim | rpm | linux enterprise micro 5.5 | 9.0.2103-150500.20.6.1 | Not reported | SUSE-SU-2023:4557-1 | Not reported |
| Suse | vim | rpm | linux enterprise module for basesystem 15 sp5 | 9.0.2103-150500.20.6.1 | Not reported | SUSE-SU-2023:4557-1 | Not reported |
| Suse | vim | rpm | linux enterprise module for desktop applications 15 sp5 | 9.0.2103-150500.20.6.1 | Not reported | SUSE-SU-2023:4557-1 | Not reported |
| Opensuse | vim | rpm | leap 15.5 | 9.0.2103-150500.20.6.1 | Not reported | SUSE-SU-2023:4557-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2023_4557-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-46246]
- [https://osv.dev/vulnerability/SUSE-SU-2023:4557-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:4560-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:4587-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-46246]
- [https://security-tracker.debian.org/tracker/CVE-2023-46246]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-46246.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-2757.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]