Vulnerabilities · 2024 · Ollama
CVE-2024-39721
Ollama vulnerability
An issue was discovered in Ollama before 0.1.34. The CreateModelHandler function uses os.Open to read a file until completion. The req.Path parameter is user-controlled and can be set to /dev/random, which is blocking, causing the goroutine to run infinitely (even after the HTTP request is aborted by the client).
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
- www.oligo.security/blog/more-models-more-probllms · Exploit
- github.com/ollama/ollama/blob/9164b0161bcb24e543cba835a8863b80af2c0c21/server/routes.go#L5
- github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/routes.go#L5
- nvd.nist.gov/vuln/detail/CVE-2024-39721
- cve.org/CVERecord?id=CVE-2024-39721
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.