Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ollama | Ollama | < 0.1.46 |
Related Weaknesses (CWE)
References
- https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83bProduct
- https://oligo.security/blog/more-models-more-probllmsExploitThird Party Advisory
FAQ
What is CVE-2024-39720?
CVE-2024-39720 is a vulnerability with a CVSS score of 8.2 (HIGH). 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...
How severe is CVE-2024-39720?
CVE-2024-39720 has been rated HIGH with a CVSS base score of 8.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-39720?
Check the references section above for vendor advisories and patch information. Affected products include: Ollama Ollama.