5.5

CVE-2024-45306: heap-buffer-overflow in Vim

Modified
AliasesDEBIAN-CVE-2024-45306CGA-mjrw-rv9p-9qh3CGA-x3f7-3fwh-5c73
Published 02-09-2024Last modified 04-10-2024

Vulnerability summary

CVE-2024-45306 is a medium (CVSS 5.5) Heap-based Buffer Overflow vulnerability in vim. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 24.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.30%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 7

Timeline

  1. 02-09-2024
    PublishedVulnerability first disclosed.
  2. 04-10-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.30%

Chance of exploitation in the next 30 days

Percentile

24%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.30% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard1 product
  • vim< 9.1.0718-r0
Debian1 product
  • vim< 2:9.1.0709-1
Vim1 product
  • vim≥ 9.1.0038, < 9.1.0707
Wolfi1 product
  • vim< 9.1.0718-r0

4 vendors · 4 products

References

7 links