8.2

CVE-2024-39720: ollama Out-of-bounds Read

CVSS: 8.2v3.1HighAnalyzed
AliasesGHSA-95j2-w8x7-hm88GO-2024-3245
Published 31-10-2024Last modified 01-11-2024

Vulnerability summary

CVE-2024-39720 is a high (CVSS 8.2) Out-of-bounds Read vulnerability in ollama. EPSS estimates a 2.44% chance of exploitation in the next 30 days, higher than 84.1% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
43/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.2/10
010
High · v3.1 (CVE.org)
EPSS score
2.44%
0%100%
Low · -0.02 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 3 · Related 3

Timeline

  1. 31-10-2024
    PublishedVulnerability first disclosed.
  2. 01-11-2024
    Last modifiedVulnerability information updated.

Description

An issue was discovered in Ollama before 0.1.46. An attacker can use two HTTP requests to upload a malformed GGUF file containing just 4 bytes starting with the GGUF custom magic header. By leveraging a custom Modelfile that includes a FROM statement pointing to the attacker-controlled blob file, the attacker can crash the application through the CreateModel route, leading to a segmentation fault (signal SIGSEGV: segmentation violation).

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

2.44%

Chance of exploitation in the next 30 days

Percentile

84%

Versus all other CVEs

30-day change

-0.02 pp

From 2.46% on 21-09-2026

21-09-202621-10-2026
EPSS score
2.44%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (oligo.security)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Github.com/ollama1 product
  • ollama< 0.1.46
Ollama1 product

2 vendors · 2 products

References

7 links