CVE-2024-39721
JSON

7.5high

An issue was discovered in Ollama before 0.1.34.

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
2.67% (higher than 86% of CVEs; EPSS, by FIRST)
Published
Last changed
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).

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
ollama ollamabefore 0.1.34CVE List, NVD

Classification

CWE-404

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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

NVD (es)

Se descubrió un problema en Ollama antes de la versión 0.1.34. La función CreateModelHandler usa os.Open para leer un archivo hasta que se complete. El parámetro req.Path está controlado por el usuario y se puede configurar en /dev/random, que es bloqueador y hace que la goroutine se ejecute infinitamente (incluso después de que el cliente cancele la solicitud HTTP).

References

Sources

SourceRecordLicence
CVE ListCVE-2024-39721 changed 2024-11-01CVE Terms of Use
NVDCVE-2024-39721 changed 2026-06-17Public domain