{"schema_version":"1.9.0","id":"CVE-2024-37032","published":"2024-05-31T00:00:00Z","modified":"2026-08-12T03:51:15.745507992Z","aliases":["GHSA-8hqg-whrw-pv92","GO-2024-2901"],"related":["CGA-mm98-4jp5-2p7p","openSUSE-SU-2024:14599-1"],"details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ollama/ollama","events":[{"introduced":"0"},{"fixed":"adeb40eaf29039b8964425f69a9315f9f1694ba8"}],"database_specific":{"cpe":"cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"0.1.34"}],"source":["DESCRIPTION","CPE_RANGE"]}}],"versions":["v0.1.34-rc1","v0.1.33","v0.1.33-rc7","v0.1.33-rc6","v0.1.33-rc5","v0.1.33-rc4","v0.1.33-rc3","v0.1.33-rc2","v0.1.33-rc1","v0.1.32","v0.1.32-rc2","v0.1.32-rc1","v0.1.30","v0.1.29","v0.1.28","v0.1.27","v0.1.26","v0.1.25","v0.1.24","v0.1.23","v0.1.22","v0.1.21","v0.1.20","v0.1.19","v0.1.18","v0.1.17","v0.1.16","v0.1.15","v0.1.14","v0.1.13","v0.1.12","v0.1.11","v0.1.10","v0.1.9","v0.1.8","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0","v0.0.21","v0.0.20","v0.0.19","v0.0.18","v0.0.17","v0.0.16","v0.0.15","v0.0.14","v0.0.13","v0.0.12","v0.0.11","v0.0.10","v0.0.9","v0.0.8","v0.0.7","v0.0.6","v0.0.5","v0.0.4","v0.0.3","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-37032.json"}}],"references":[{"type":"WEB","url":"https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58"},{"type":"WEB","url":"https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34"},{"type":"WEB","url":"https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37032.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37032"},{"type":"FIX","url":"https://github.com/ollama/ollama/pull/4175"}],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37032.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}