CVE catalog

CVE-2024-45306

vim: CVE-2024-45306

[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.30% · Oct 25, 2026

Vim is an open source, command line text editor. Patch v9.1.0038 optimized how the cursor position is calculated and removed a loop, that verified that the cursor position always points inside a line and does not become invalid by pointing beyond the end of a line. Back then we assumed this loop is unnecessary. However, this change made it possible that the cursor position stays invalid and points beyond the end of a line, which would eventually cause a heap-buffer-overflow when trying to access the line pointer at the specified cursor position. It's not quite clear yet, what can lead to this situation that the cursor points to an invalid position. That's why patch v9.1.0707 does not include a test case. The only observed impact has been a program crash. This issue has been addressed in with the patch v9.1.0707. All users are advised to upgrade.

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+deb12u2not affected

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianvimsourcesid2:9.1.0709-1not yet assignedNot reportedNot reported
Debianvimsourceforky2:9.1.0709-1not yet assignedNot reportedNot reported
Debianvimsourcetrixie2:9.1.0709-1not yet assignedNot reportedNot reported
DebianvimsourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

  • [vim-athena]Not affected

    Source package: [vim]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

  • [vim-common]Not affected

    Source package: [vim]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

  • [vim-doc]Not affected

    Source package: [vim]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

  • [vim-gtk3]Not affected

    Source package: [vim]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

  • [vim-gui-common]Not affected

    Source package: [vim]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

  • [vim-motif]Not affected

    Source package: [vim]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

  • [vim-nox]Not affected

    Source package: [vim]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

  • [vim-runtime]Not affected

    Source package: [vim]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

  • [vim-tiny]Not affected

    Source package: [vim]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

  • [xxd]Not affected

    Source package: [vim]

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

      Not affected

      dsa · vim · debian · bookworm

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

      Not affected

      dsa · vim · debian · bookworm

[Debian 13 (Trixie)]

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

      Fixed · Fixed: 2:9.1.0709-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · arm64 · trixie

      Fixed · Fixed: 2:9.1.0709-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.0709-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0709-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.0709-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0709-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.0709-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0709-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.0709-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · arm64 · trixie

      Fixed · Fixed: 2:9.1.0709-1

      dsa · vim · debian · 13

  • Source package: [vim]

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

      Fixed · Fixed: 2:9.1.0709-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0709-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.0709-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · arm64 · trixie

      Fixed · Fixed: 2:9.1.0709-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.0709-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · arm64 · trixie

      Fixed · Fixed: 2:9.1.0709-1

      dsa · vim · debian · 13

  • Source package: [vim]

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

      Fixed · Fixed: 2:9.1.0709-1

      dsa · vim · debian · 13

    • 2:9.1.1230-2 · all · trixie

      Fixed · Fixed: 2:9.1.0709-1

      dsa · vim · debian · 13

Next results

Observed:

References