CVE catalog

CVE-2023-46246

vim: CVE-2023-46246

[CVE catalog]

Severity
Medium · CVSS 4CVSS: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.

DistributionPackageReleaseVersionStatus
Debianvimsid2:9.2.0858-1fixed
Debianvimforky2:9.2.0858-1fixed
Debianvimtrixie2:9.1.1230-2fixed
Debianvimbookworm2:9.0.1378-2+deb12u2vulnerable
Ubuntuvimpro2:8.0.0197-4ubuntu5vulnerable
Ubuntuvimpro2:8.0.1144-1ubuntu1vulnerable
Ubuntuvimpro2:8.0.1401-1ubuntu1vulnerable
Ubuntuvimpro2:8.0.1401-1ubuntu2vulnerable
Ubuntuvimpro2:8.0.1401-1ubuntu3vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.1vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.3vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.4vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.6vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.7vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.8vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.9vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.10vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.11vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.12vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.13vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.13+esm1vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.13+esm3vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.13+esm4vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.13+esm5vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.13+esm6vulnerable
Ubuntuvimpro2:8.0.1453-1ubuntu1.13+esm7fixed
Ubuntuvim20.042:8.1.0875-5ubuntu2vulnerable
Ubuntuvim20.042:8.1.0875-5ubuntu3vulnerable
Ubuntuvim20.042:8.1.0875-5ubuntu4vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu1vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu4vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.3vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.4vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.6vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.7vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.8vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.9vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.11vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.12vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.13vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.14vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.15vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.16vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.17vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.18vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.20vulnerable
Ubuntuvim20.042:8.1.2269-1ubuntu5.21fixed
Ubuntuvim22.042:8.2.2434-3ubuntu3vulnerable
Ubuntuvim22.042:8.2.2434-3ubuntu4vulnerable
Ubuntuvim22.042:8.2.3565-1ubuntu1vulnerable
Ubuntuvim22.042:8.2.3565-1ubuntu2vulnerable
Ubuntuvim22.042:8.2.3565-1ubuntu3vulnerable
Ubuntuvim22.042:8.2.3565-1ubuntu5vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu1vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.1vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.3vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.4vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.5vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.7vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.8vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.9vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.10vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.11vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.12vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.13vulnerable
Ubuntuvim22.042:8.2.3995-1ubuntu2.15fixed
Susevimlinux enterprise server 12 sp59.0.2103-17.26.1fixed
Susevimlinux enterprise server for sap applications 12 sp59.0.2103-17.26.1fixed
Susevimlinux enterprise micro 5.39.0.2103-150000.5.57.1fixed
Susevimlinux enterprise micro 5.49.0.2103-150000.5.57.1fixed
Susevimlinux enterprise module for basesystem 15 sp49.0.2103-150000.5.57.1fixed
Susevimlinux enterprise module for desktop applications 15 sp49.0.2103-150000.5.57.1fixed
Susevimlinux enterprise high performance computing 15 sp1-ltss9.0.2103-150000.5.57.1fixed
Susevimlinux enterprise high performance computing 15 sp2-ltss9.0.2103-150000.5.57.1fixed
Susevimlinux enterprise high performance computing 15 sp3-espos9.0.2103-150000.5.57.1fixed
Susevimlinux enterprise high performance computing 15 sp3-ltss9.0.2103-150000.5.57.1fixed
Susevimlinux enterprise server 15 sp1-ltss9.0.2103-150000.5.57.1fixed
Susevimlinux enterprise server 15 sp2-ltss9.0.2103-150000.5.57.1fixed
Susevimlinux enterprise server 15 sp3-ltss9.0.2103-150000.5.57.1fixed
Susevimlinux enterprise server for sap applications 15 sp19.0.2103-150000.5.57.1fixed
Susevimlinux enterprise server for sap applications 15 sp29.0.2103-150000.5.57.1fixed
Susevimlinux enterprise server for sap applications 15 sp39.0.2103-150000.5.57.1fixed
Susevimlinux enterprise micro 5.19.0.2103-150000.5.57.1fixed
Susevimlinux enterprise micro 5.29.0.2103-150000.5.57.1fixed
Susevimenterprise storage 7.19.0.2103-150000.5.57.1fixed
Opensusevimleap micro 5.39.0.2103-150000.5.57.1fixed
Opensusevimleap micro 5.49.0.2103-150000.5.57.1fixed
Opensusevimleap 15.49.0.2103-150000.5.57.1fixed
Susevimlinux enterprise micro 5.59.0.2103-150500.20.6.1fixed
Susevimlinux enterprise module for basesystem 15 sp59.0.2103-150500.20.6.1fixed
Susevimlinux enterprise module for desktop applications 15 sp59.0.2103-150500.20.6.1fixed
Opensusevimleap 15.59.0.2103-150500.20.6.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianvimsourcesid2:9.0.2087-1unimportantNot reportedNot reported
Debianvimsourceforky2:9.0.2087-1unimportantNot reportedNot reported
Debianvimsourcetrixie2:9.0.2087-1unimportantNot reportedNot reported
Debianvimsourcebookworm(unfixed)unimportantNot reportedNot reported
Ubuntuvimdebpro2:8.0.1453-1ubuntu1.13+esm7Not reportedUBUNTU-CVE-2023-46246Not reported
Ubuntuvimdeb20.042:8.1.2269-1ubuntu5.21Not reportedUBUNTU-CVE-2023-46246Not reported
Ubuntuvimdeb22.042:8.2.3995-1ubuntu2.15Not reportedUBUNTU-CVE-2023-46246Not reported
Susevimrpmlinux enterprise server 12 sp59.0.2103-17.26.1Not reportedSUSE-SU-2023:4560-1Not reported
Susevimrpmlinux enterprise server for sap applications 12 sp59.0.2103-17.26.1Not reportedSUSE-SU-2023:4560-1Not reported
Susevimrpmlinux enterprise micro 5.39.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise micro 5.49.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise module for basesystem 15 sp49.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise module for desktop applications 15 sp49.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise high performance computing 15 sp1-ltss9.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise high performance computing 15 sp2-ltss9.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise high performance computing 15 sp3-espos9.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise high performance computing 15 sp3-ltss9.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise server 15 sp1-ltss9.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise server 15 sp2-ltss9.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise server 15 sp3-ltss9.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise server for sap applications 15 sp19.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise server for sap applications 15 sp29.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise server for sap applications 15 sp39.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise micro 5.19.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise micro 5.29.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmenterprise storage 7.19.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Opensusevimrpmleap micro 5.39.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Opensusevimrpmleap micro 5.49.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Opensusevimrpmleap 15.49.0.2103-150000.5.57.1Not reportedSUSE-SU-2023:4587-1Not reported
Susevimrpmlinux enterprise micro 5.59.0.2103-150500.20.6.1Not reportedSUSE-SU-2023:4557-1Not reported
Susevimrpmlinux enterprise module for basesystem 15 sp59.0.2103-150500.20.6.1Not reportedSUSE-SU-2023:4557-1Not reported
Susevimrpmlinux enterprise module for desktop applications 15 sp59.0.2103-150500.20.6.1Not reportedSUSE-SU-2023:4557-1Not reported
Opensusevimrpmleap 15.59.0.2103-150500.20.6.1Not reportedSUSE-SU-2023:4557-1Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References