HighVulnerability
CVE-2024-39721: Ollama infinite goroutine via blocking file path in CreateModelHandler
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2024-39721
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 2.7%
Summary
CVE-2024-39721 affects Ollama before 0.1.34. In the CreateModelHandler function, os.Open reads a file until completion, and the user-controlled req.Path parameter can be set to /dev/random, a blocking device. This causes the goroutine to run indefinitely, even after the client aborts the HTTP request. The weakness is classified as CWE-404, Improper Resource Shutdown or Release.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
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