5.5

CVE-2024-45306: vim Heap-based Buffer Overflow

CVSS: 5.5v3.1MediumModified
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 21.1% of scored vulnerabilities.

Overall risk
22/100
0100
Low · default modelHow is this calculated?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.30%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known 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

21%

Versus all other CVEs

30-day change

0.00 pp

From 0.30% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.30%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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