CVE-2024-39720: ollama Out-of-bounds Read
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.
Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 31-10-2024PublishedVulnerability first disclosed.
- 01-11-2024Last 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- OSV · GoEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- NVDNIST8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
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
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (oligo.security)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Github.com/ollama1 product
- ollama< 0.1.46
Ollama1 product
- ollama< 0.1.46
2 vendors · 2 products
References
7 links- github.com/ollama/ollamaPACKAGE