CVE catalog

CVE-2024-43790

vim: CVE-2024-43790

[CVE catalog]

Severity
Medium · CVSS 4.5CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.31% · Oct 27, 2026

Vim is an open source command line text editor. When performing a search and displaying the search-count message is disabled (:set shm+=S), the search pattern is displayed at the bottom of the screen in a buffer (msgbuf). When right-left mode (:set rl) is enabled, the search pattern is reversed. This happens by allocating a new buffer. If the search pattern contains some ASCII NUL characters, the buffer allocated will be smaller than the original allocated buffer (because for allocating the reversed buffer, the strlen() function is called, which only counts until it notices an ASCII NUL byte ) and thus the original length indicator is wrong. This causes an overflow when accessing characters inside the msgbuf by the previously (now wrong) length of the msgbuf. The issue has been fixed as of Vim patch v9.1.0689.

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
Alpinevim3.209.1.0707-r0fixed
Alpinevim3.219.1.0707-r0fixed
Alpinevim3.229.1.0707-r0fixed
Alpinevim3.239.1.0707-r0fixed
Susevimlinux enterprise server ltss extended security 12 sp59.1.1101-17.41.1fixed
Susevimlinux enterprise micro 5.39.1.1101-150000.5.69.1fixed
Susevimlinux enterprise micro 5.49.1.1101-150000.5.69.1fixed
Susevimlinux enterprise micro 5.19.1.1101-150000.5.69.1fixed
Susevimlinux enterprise micro 5.29.1.1101-150000.5.69.1fixed
Susevimlinux enterprise micro 5.59.1.1101-150500.20.21.1fixed
Susevimlinux enterprise module for basesystem 15 sp69.1.1101-150500.20.21.1fixed
Susevimlinux enterprise module for desktop applications 15 sp69.1.1101-150500.20.21.1fixed
Opensusevimleap 15.69.1.1101-150500.20.21.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianvimsourcesid2:9.1.0698-1unimportantNot reportedNot reported
Debianvimsourceforky2:9.1.0698-1unimportantNot reportedNot reported
Debianvimsourcetrixie2:9.1.0698-1unimportantNot reportedNot reported
Debianvimsourcebookworm(unfixed)unimportantNot reportedNot reported
Alpinevimapk3.209.1.0707-r0Not reportedALPINE-CVE-2024-43790Not reported
Alpinevimapk3.219.1.0707-r0Not reportedALPINE-CVE-2024-43790Not reported
Alpinevimapk3.229.1.0707-r0Not reportedALPINE-CVE-2024-43790Not reported
Alpinevimapk3.239.1.0707-r0Not reportedALPINE-CVE-2024-43790Not reported
Susevimrpmlinux enterprise server ltss extended security 12 sp59.1.1101-17.41.1Not reportedSUSE-SU-2025:0722-1Not reported
Susevimrpmlinux enterprise micro 5.39.1.1101-150000.5.69.1Not reportedSUSE-SU-2025:0724-1Not reported
Susevimrpmlinux enterprise micro 5.49.1.1101-150000.5.69.1Not reportedSUSE-SU-2025:0724-1Not reported
Susevimrpmlinux enterprise micro 5.19.1.1101-150000.5.69.1Not reportedSUSE-SU-2025:0724-1Not reported
Susevimrpmlinux enterprise micro 5.29.1.1101-150000.5.69.1Not reportedSUSE-SU-2025:0724-1Not reported
Susevimrpmlinux enterprise micro 5.59.1.1101-150500.20.21.1Not reportedSUSE-SU-2025:0723-1Not reported
Susevimrpmlinux enterprise module for basesystem 15 sp69.1.1101-150500.20.21.1Not reportedSUSE-SU-2025:0723-1Not reported
Susevimrpmlinux enterprise module for desktop applications 15 sp69.1.1101-150500.20.21.1Not reportedSUSE-SU-2025:0723-1Not reported
Opensusevimrpmleap 15.69.1.1101-150500.20.21.1Not reportedSUSE-SU-2025:0723-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [vim]Affected
    Details (2)
    • 2:9.0.1378-2+deb12u2 · amd64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · arm64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

  • [vim-athena]Affected

    Source package: [vim]

    Details (2)
    • 2:9.0.1378-2+deb12u2 · all · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · all · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

  • [vim-common]Affected

    Source package: [vim]

    Details (2)
    • 2:9.0.1378-2+deb12u2 · all · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · all · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

  • [vim-doc]Affected

    Source package: [vim]

    Details (2)
    • 2:9.0.1378-2+deb12u2 · all · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · all · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

  • [vim-gtk3]Affected

    Source package: [vim]

    Details (2)
    • 2:9.0.1378-2+deb12u2 · amd64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · arm64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

  • [vim-gui-common]Affected

    Source package: [vim]

    Details (2)
    • 2:9.0.1378-2+deb12u2 · all · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · all · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

  • [vim-motif]Affected

    Source package: [vim]

    Details (2)
    • 2:9.0.1378-2+deb12u2 · amd64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · arm64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

  • [vim-nox]Affected

    Source package: [vim]

    Details (2)
    • 2:9.0.1378-2+deb12u2 · amd64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · arm64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

  • [vim-runtime]Affected

    Source package: [vim]

    Details (2)
    • 2:9.0.1378-2+deb12u2 · all · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · all · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

  • [vim-tiny]Affected

    Source package: [vim]

    Details (2)
    • 2:9.0.1378-2+deb12u2 · amd64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · arm64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

  • [xxd]Affected

    Source package: [vim]

    Details (2)
    • 2:9.0.1378-2+deb12u2 · amd64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

    • 2:9.0.1378-2+deb12u2 · arm64 · bookworm

      Affected

      dsa · vim · debian · bookworm; dsa · vim · debian · 12

[Debian 13 (Trixie)]

  • [vim]Fixed
    Details (2)
    • 2:9.1.1230-2 · amd64 · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · arm64 · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

  • [vim-athena]Fixed

    Source package: [vim]

    Details (2)
    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

  • [vim-common]Fixed

    Source package: [vim]

    Details (2)
    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

  • [vim-doc]Fixed

    Source package: [vim]

    Details (2)
    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

  • [vim-gtk3]Fixed

    Source package: [vim]

    Details (2)
    • 2:9.1.1230-2 · amd64 · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · arm64 · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

  • Source package: [vim]

    Details (2)
    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

  • [vim-motif]Fixed

    Source package: [vim]

    Details (2)
    • 2:9.1.1230-2 · amd64 · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · arm64 · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

  • [vim-nox]Fixed

    Source package: [vim]

    Details (2)
    • 2:9.1.1230-2 · amd64 · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · arm64 · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

  • Source package: [vim]

    Details (2)
    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0698-1

      dsa · vim · debian · 13

Next results

Observed:

References