All vulnerabilities

Servers and applications

CVE-2024-39721

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).

Severity
High 7.5
Published
31 Oct 2024
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.1.34
Sources
NVD

Affected software

SoftwareAffected versions
OllamaServers and applications · cpe:a:ollama:ollama
  • Every version before 0.1.34

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2024-39721
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2024-39721