CVE-2024-39721: ollama Improper Resource Shutdown or Release
Vulnerability summary
CVE-2024-39721 is a high (CVSS 7.5) Improper Resource Shutdown or Release vulnerability in ollama. EPSS estimates a 2.64% chance of exploitation in the next 30 days, higher than 85.4% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 31-10-2024PublishedVulnerability first disclosed.
- 01-11-2024Last modifiedVulnerability information updated.
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).
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
2.64%
Chance of exploitation in the next 30 days
Percentile
85%
Versus all other CVEs
30-day change
-0.02 pp
From 2.67% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (oligo.security)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Ollama1 product
- ollama< 0.1.34
1 vendor · 1 product