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).
The record classifies CVE-2024-39721 under weakness class CWE-404. Its CVSS v3 base vector states that the flaw is reachable remotely over the network, needs no prior authentication, needs no user interaction, and has high impact on availability. 1 affected-product entry is recorded, across 1 vendor, listed below. The identifier was first published 749 days ago.
Severity and exploitation probability
- CVSS v3.1 base score
- 7.5 — HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - EPSS (FIRST)
- 2.6% probability of exploitation in the next 30 days, higher than 85.1% of all scored CVEs
- CISA KEV
- Not listed in the CISA Known Exploited Vulnerabilities catalog
- Threadlinqs priority
- 9.2/10 — a Threadlinqs composite of the CVSS base score, the EPSS percentile and public exploit availability
- Published
- 2024-10-31
Is CVE-2024-39721 being exploited?
Weaponised exploit code for CVE-2024-39721 is publicly available. 1 public proof-of-concept repository is tracked for this identifier. It currently carries a trending score of 34 in the Threadlinqs vulnerability feed.
- trickest/cve (trickest)
Affected products and versions
- Ollama: Ollama
How to fix CVE-2024-39721
The record marks a vendor fix as available for CVE-2024-39721. Patch reference: https://github.com/ollama/ollama/releases. Apply the vendor fix referenced above to every affected product listed in this record, then confirm the running version against the vendor advisory.
Threat activity tracking CVE-2024-39721
No threat campaign in the Threadlinqs corpus currently references CVE-2024-39721, in its CVE list or as an indicator. The linkage is recomputed from the live corpus on every daily ingest, so this section fills in as soon as a tracked campaign cites the identifier.
Sources
Enriched from CVE.org, FIRST EPSS, public proof-of-concept repositories.