What’s Vulnerable › Vulnerabilities
CVE-2024-39720
- Severity: high (CVSS 8.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-10-31 · updated 2026-06-17
- Weakness: CWE-125
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).
Affected products
- Ollama: before 0.1.46 — fixed in 0.1.46
How to fix
Upgrade to a fixed version: Ollama 0.1.46. Check the vendor advisory for mitigations.
References
- https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131L417
- https://oligo.security/blog/more-models-more-probllms
Get alerted when CVE-2024-39720 or the next vulnerability affects your stack