CVE-2024-45306
published medium CVSS 3.1 · 4.5heap-buffer-overflow in Vim
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vim | — | vim>= 9.1.0038, < 9.1.0707 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | vimx86_64 | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| SUSE / openSUSE | SLE-15-SP6 | vimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
Show 39 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.6 | vimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-12-SP5 | gvimx86_64 | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| SUSE / openSUSE | SLE-12-SP5 | vim-datanoarch | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| SUSE / openSUSE | SLE-12-SP5 | vim-data-commonnoarch | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-datanoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-data-commonnoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smallaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smallppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smalls390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smallx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-data-commonnoarch | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-data-commonnoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smallaarch64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-smallaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smallppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smalls390x | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-smalls390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smallx86_64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-smallx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | xxdaarch64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | xxds390x | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | xxdx86_64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-datanoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-data-commonnoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smallaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smallppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smalls390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smallx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vim | vim | >= 9.1.0038, < 9.1.0707 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-122 CWE-122: Heap-based Buffer Overflow
References
4Provider assertions
3GitHub_M · cna
heap-buffer-overflow in Vim
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f5900a247ac88e67794811684d9ff68604e33651f4261961248da6457509eb14
- Ingested
- 23 Sep 2026, 08:27:47 UTC
- Source record
- Official CVE record