CVE-2024-39720: Ollama crash via malformed GGUF file in CreateModel route
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2024-39720
- Published
- Record updated
- Affected
- github.com/ollama/ollama < 0.1.46
- Fixed in
- 0.1.46
- released June 21, 2024, 133 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 2.4%
Summary
CVE-2024-39720 affects Ollama before 0.1.46. An attacker can upload a malformed GGUF file of just 4 bytes, starting with the GGUF custom magic header, using two HTTP requests. By pointing a custom Modelfile's FROM statement at that blob, the attacker crashes the application through the CreateModel route with a segmentation fault (SIGSEGV). The weakness is classified as CWE-125, Out-of-bounds Read.
Mitigation
The source links a fix commit in the ollama/ollama repository comparing v0.1.45 to v0.1.46, but it does not state the fix in words. Its stated mitigation is therefore: N/A -- no mitigation discussed in source.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- github.com/ollama/ollamaGoLLM dependency since 2023-07-08 · 2 tracked dependents
Topics
Related items
- LowCloakFEM: Agentic FEM Code Generation for Red-Teaming Computational Resource ExhaustionSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)
- MediumThe Rise of LLMJacking: How Threat Actors Monetize Compromised Cloud and Model ResourcesSimilar attack · Google Threat Intelligence
- InfoThe Blind Spots of Detection: Adversarial Perturbation Attacks against Watchdogs in Distributed LLM InferenceSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)
- HighCVE-2026-118761: Kubeflow Pipelines decompression bomb in pipeline archive uploadSimilar attack · NVD/CVE Database
- LowOpenCode User Hit with Hostile Backlash After Reporting Free AI LoopholeSimilar attack · Socket Blog