# CVE-2024-39721: An issue was discovered in Ollama before 0.1.34.

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.67%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-31T00:00:00.000Z
- Modified: 2026-06-17T07:42:32.460Z
- Weaknesses: CWE-404
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## 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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ollama ollama: before 0.1.34

## References

- <https://www.oligo.security/blog/more-models-more-probllms> (exploit, third-party-advisory)
- <https://github.com/ollama/ollama/blob/9164b0161bcb24e543cba835a8863b80af2c0c21/server/routes.go#L557> (product)
- <https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/routes.go#L536> (product)

## Sources

- CVE List: [CVE-2024-39721](https://www.cve.org/CVERecord?id=CVE-2024-39721), CVE Terms of Use, modified 2024-11-01
- NVD: [CVE-2024-39721](https://nvd.nist.gov/vuln/detail/CVE-2024-39721), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-39721 · Whole record: https://cve.day/CVE-2024-39721.json · Rebuilt by cve.day 2026-11-25T22:58:47.563Z
