Vulnerabilities · 2024 · Ollama
CVE-2024-39720
Ollama vulnerability
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. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ollama runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- oligo.security/blog/more-models-more-probllms · Exploit
- github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf4002
- nvd.nist.gov/vuln/detail/CVE-2024-39720
- oligosecurity.webflow.io/blog/more-models-more-probllms
- pkg.go.dev/vuln/GO-2024-3245
- github.com/advisories/GHSA-95j2-w8x7-hm88
- nvd.nist.gov/vuln/detail/CVE-2024-39720
- cve.org/CVERecord?id=CVE-2024-39720
More vulnerabilities in Ollama products
CVE-2025-66960CVE-2025-66959CVE-2025-63389CVE-2025-51471CVE-2025-44779CVE-2025-15514CVE-2025-1975CVE-2025-0317All 19
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.