CVE-2024-39721
CVE-2024-39721 is a high-severity vulnerability in Ollama with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-404.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- EPSS exploit prediction: 3% (84th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-38205
- Weakness: CWE-404
- Affected product: Ollama
- Published:
- Last modified:
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).
Frequently asked questions
- What is 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).
- How severe is CVE-2024-39721?
- CVE-2024-39721 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2024-39721 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 3% (84th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-39721?
- CVE-2024-39721 affects Ollama. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-39721?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2024-39721 have an EU (EUVD) identifier?
- Yes. CVE-2024-39721 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-38205.
- When was CVE-2024-39721 published?
- CVE-2024-39721 was published on 2024-10-31 and last updated on 2026-06-17.
References
- https://github.com/ollama/ollama/blob/9164b0161bcb24e543cba835a8863b80af2c0c21/server/routes.go#L557
- https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/routes.go#L536
- https://www.oligo.security/blog/more-models-more-probllms
Affected products (1)
- cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*
More vulnerabilities in Ollama
- CVE-2026-42249 — Critical (CVSS 9.8): Ollama for Windows contains a Remote Code Execution vulnerability in its update mechanism due to improper handling of…
- CVE-2026-42248 — Critical (CVSS 9.8): Ollama for Windows does not perform integrity or authenticity verification of downloaded update executables. Unlike…
- CVE-2025-63389 — Critical (CVSS 9.8): A critical authentication bypass vulnerability exists in Ollama platform's API endpoints in versions prior to and…
- CVE-2026-7482 — Critical (CVSS 9.1): Ollama before 0.17.1 contains a heap out-of-bounds read vulnerability in the GGUF model loader. The /api/create…
- CVE-2024-37032 — High (CVSS 8.8): Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model…
- CVE-2024-39720 — High (CVSS 8.2): An issue was discovered in Ollama before 0.1.46. An attacker can use two HTTP requests to upload a malformed GGUF file…
Other CWE-404 vulnerabilities
- CVE-2023-24444 — Critical (CVSS 9.8): Jenkins OpenID Plugin 2.4 and earlier does not invalidate the previous session on login.
- CVE-2024-31611 — Critical (CVSS 9.1): SeaCMS 12.9 has a file deletion vulnerability via admin_template.php.
- CVE-2018-8450 — High (CVSS 8.8): A remote code execution vulnerability exists when Windows Search handles objects in memory, aka "Windows Search Remote…
- CVE-2026-11317 — High (CVSS 8.7): A denial of service security issue exists in the affected product. The security issue stems from a fault occurring when…
- CVE-2022-25762 — High (CVSS 8.6): If a web application sends a WebSocket message concurrently with the WebSocket connection closing when running on…
- CVE-2020-26070 — High (CVSS 8.6): A vulnerability in the ingress packet processing function of Cisco IOS XR Software for Cisco ASR 9000 Series…