CVE-2024-39721
Wolfi vulnerability analysis and mitigation

Overview

An issue was discovered in Ollama before version 0.1.34 that could enable denial-of-service (DoS) attacks. The vulnerability, identified as CVE-2024-39721, exists in the CreateModelHandler function where the req.Path parameter is user-controlled and can be manipulated to cause infinite loops, leading to resource exhaustion (Oligo Blog, NVD).

Technical details

The vulnerability stems from the CreateModelHandler function's use of os.Open to read a file until completion. When the req.Path parameter is set to /dev/random, which is blocking, it causes the goroutine to run infinitely, even after the HTTP request is aborted by the client. The vulnerability has received a CVSS v3.1 Base Score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H and is classified under CWE-404 (Improper Resource Shutdown or Release) (NVD).

Impact

When exploited, this vulnerability can cause extensive resource consumption through a never-ending loop. Repeated calls to the affected endpoint can rapidly increase CPU usage on the impacted machine to 80-90%, ultimately leading to denial of service. The attack can be initiated with a single HTTP request (Oligo Blog).

Mitigation and workarounds

The vulnerability has been patched in Ollama version 0.1.34. Organizations using affected versions should upgrade to version 0.1.34 or later to mitigate this security risk (Oligo Blog).

Community reactions

According to research, approximately 10,000 unique internet-facing IPs were running Ollama at the time of discovery, with one in four servers being vulnerable to this and other discovered vulnerabilities. The security community has emphasized the importance of proper configuration and timely updates, particularly given Ollama's increasing adoption in enterprise environments (Oligo Blog).

Additional resources


SourceThis report was generated using AI

Related Wolfi vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66471HIGH8.9
  • PythonPython
  • urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • py3-urllib3
NoYesDec 05, 2025
CVE-2025-66564HIGH7.5
  • Datadog AgentDatadog Agent
  • cosign
NoYesDec 04, 2025
CVE-2025-66490MEDIUM6.9
  • WolfiWolfi
  • github.com/traefik/traefik
NoYesDec 09, 2025
CVE-2025-66491MEDIUM5.9
  • WolfiWolfi
  • traefik
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management