CVE-2024-39721 Denial of service in n/a
Attackers can cause a denial of service by specifying a blocking file path, leading to infinite goroutine execution in Ollama.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-39721?
CVE-2024-39721 is a high-severity denial of service vulnerability in n/a, published on 31 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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).
Weakness: CWE-404
Which versions are affected by CVE-2024-39721?
It affects 1 product.
Products include Ollama Ollama.
How do I fix CVE-2024-39721?
No fix has been published for CVE-2024-39721 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-39721 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39721 exists.
Other vulnerabilities in n/a
- CVE-2025-63389 Ollama Platform has missing authentication enabling attackers to perform model management operations
- CVE-2024-45436 Ollama can extract members of a ZIP archive outside of the parent directory
- CVE-2026-7482 Ollama heap out-of-bounds read in GGUF tensor parsing leaks server process memory to unauthenticated remote attackers
- CVE-2024-37032 Ollama does not validate the format of the digest (sha256 with 64 hex digits)
- CVE-2025-15514 Ollama Multi-Modal Model Image Processing NULL Pointer Dereference
Sources
Also known as GHSA-mvx2-276h-w78v.