Vulnerability
CVE-2024-37032
Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path, and thus mishandles the TestGetBlobsPath test cases such as fewer than 64 hex digits, more than 64 hex digits, or an initial ../ substring.
7 advisories report this vulnerability, across 4 ecosystems.
Advisories
- CGA-62rj-c55h-3wxp
- CGA-c5qx-57rh-c645
- CGA-c8rq-c9v9-mh4f
- CGA-m552-2969-37wc
-
GHSA-8hqg-whrw-pv92
Ollama does not validate the format of the digest (sha256 with 64 hex digits)
-
GO-2024-2901
Ollama does not validate the format of the digest (sha256 with 64 hex digits) in github.com/ollama/ollama
-
openSUSE-SU-2024:14599-1
govulncheck-vulndb-0.0.20241213T205935-1.1 on GA media
References
- https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58
- https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34
- https://github.com/ollama/ollama/pull/4175
- https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032