CVE-2024-39721: Ollama - Denial of Service
- Cve: CVE-2024-39721
- Name: Ollama - Denial of Service
- 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).
- Impact: Attackers can cause denial of service by making the server hang indefinitely, disrupting service availability.
- Remediation: Update to version 0.1.34 or later to fix the issue.
- Vulnerability impact: denial_of_service
- Requirement type: user_interaction
- Requirements: Attacker needs to control the req.Path parameter
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.02665
- Epss percentile: 0.85999
- Assignee: [email protected]
- Published at: 2024-10-31T20:15:04Z
- Age in days: 754
- Modified at: 2026-06-17T07:42:32Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-39721
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: vulnerability type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-404 | Improper Resource Shutdown or Release |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://www.oligo.security/blog/more-models-more-probllms | nvd | 2024-10-31 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ollama:ollama | < 0.1.34 | no | nvd | /v1/products/ollama/ollama |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-10-31
- Remote: yes
- Exposed hosts: 833
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports