
CVE catalog
CVE-2024-45306
vim: CVE-2024-45306
- Severity
- Medium · CVSS 4.5
CVSS: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.
| 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 | not affected |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | vim | source | sid | 2:9.1.0709-1 | not yet assigned | Not reported | Not reported |
| Debian | vim | source | forky | 2:9.1.0709-1 | not yet assigned | Not reported | Not reported |
| Debian | vim | source | trixie | 2:9.1.0709-1 | not yet assigned | Not reported | Not reported |
| Debian | vim | source | bookworm | Not affected | unimportant | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [vim]Not affected
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· arm64 · bookwormNot affected
dsa · vim · debian · bookworm
- [vim-athena]Not affected
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· all · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· all · bookwormNot affected
dsa · vim · debian · bookworm
- [vim-common]Not affected
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· all · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· all · bookwormNot affected
dsa · vim · debian · bookworm
- [vim-doc]Not affected
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· all · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· all · bookwormNot affected
dsa · vim · debian · bookworm
- [vim-gtk3]Not affected
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· arm64 · bookwormNot affected
dsa · vim · debian · bookworm
- [vim-gui-common]Not affected
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· all · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· all · bookwormNot affected
dsa · vim · debian · bookworm
- [vim-motif]Not affected
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· arm64 · bookwormNot affected
dsa · vim · debian · bookworm
- [vim-nox]Not affected
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· arm64 · bookwormNot affected
dsa · vim · debian · bookworm
- [vim-runtime]Not affected
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· all · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· all · bookwormNot affected
dsa · vim · debian · bookworm
- [vim-tiny]Not affected
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· arm64 · bookwormNot affected
dsa · vim · debian · bookworm
- [xxd]Not affected
Source package: [vim]
Details (2)
2:9.0.1378-2+deb12u2· amd64 · bookwormNot affected
dsa · vim · debian · bookworm
2:9.0.1378-2+deb12u2· arm64 · bookwormNot affected
dsa · vim · debian · bookworm
[Debian 13 (Trixie)]
- [vim]Fixed
Details (2)
2:9.1.1230-2· amd64 · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
2:9.1.1230-2· arm64 · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
- [vim-athena]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· all · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
2:9.1.1230-2· all · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
- [vim-common]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· all · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
2:9.1.1230-2· all · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
- [vim-doc]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· all · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
2:9.1.1230-2· all · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
- [vim-gtk3]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· amd64 · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
2:9.1.1230-2· arm64 · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
- [vim-gui-common]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· all · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
2:9.1.1230-2· all · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
- [vim-motif]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· amd64 · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
2:9.1.1230-2· arm64 · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
- [vim-nox]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· amd64 · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
2:9.1.1230-2· arm64 · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
- [vim-runtime]Fixed
Source package: [vim]
Details (2)
2:9.1.1230-2· all · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
2:9.1.1230-2· all · trixieFixed · Fixed:
2:9.1.0709-1dsa · vim · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2025_0722-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-45306]
- [https://security-tracker.debian.org/tracker/CVE-2024-45306]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-45306.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2025/wid-sec-w-2025-1439.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]