{"schemaVersion":3,"id":"CVE-2024-37032","aliases":["CGA-62rj-c55h-3wxp","CGA-c5qx-57rh-c645","CGA-c8rq-c9v9-mh4f","CGA-m552-2969-37wc","GHSA-8hqg-whrw-pv92","GO-2024-2901","GHSA-v4cg-63r8-8fh8"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2024-05-31T00:00:00.000Z","modified":"2025-03-27T20:57:59.559Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.89633,"percentile":0.9979,"severity":"critical","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.89633},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.89633,"percentile":0.9979}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.89633,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.89633,"percentile":0.9979}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_6F661A741FAC28B9","name":"Exploit Reference (vicarius.io)","source":"reference","url":"https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_EXPLOIT_LINUX_HTTP_OLLAMA_RCE_CVE_2024_37032","name":"Ollama Model Registry Path Traversal RCE","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/linux/http/ollama_rce_cve_2024_37032.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/linux/http/ollama_rce_cve_2024_37032","rank":"600","rankName":"excellent","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["artifacts-on-disk","ioc-in-logs","config-changes"],"reliability":["repeatable-session"]}}],"exploitCount":2,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"chainguard","product":"ollama","name":"ollama","label":"ollama","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ollama","purlType":"apk","versions":[{"text":"< 0.1.44-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.1.44-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"ollama-cpu","name":"ollama-cpu","label":"ollama-cpu","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ollama-cpu","purlType":"apk","versions":[{"text":"< 0.1.44-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.1.44-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"ollama","name":"ollama","label":"ollama","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/ollama","purlType":"apk","versions":[{"text":"< 0.1.44-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.1.44-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"ollama-cpu","name":"ollama-cpu","label":"ollama-cpu","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/ollama-cpu","purlType":"apk","versions":[{"text":"< 0.1.44-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.1.44-r0","eol":null,"hubHref":null},{"vendor":"github.com/ollama","product":"ollama","name":"github.com/ollama/ollama","label":"ollama","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/ollama/ollama","purlType":"golang","versions":[{"text":"< 0.1.34","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.1.34","eol":null,"hubHref":null},{"vendor":"ollama","product":"ollama","name":"ollama","label":"ollama","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.1.34","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.1.34","eol":null,"hubHref":"/vendor/ollama/ollama"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/ollama/ollama/pull/4175","label":"github.com/ollama/ollama/pull/4175","hostname":"github.com","tags":["FIX","WEB","Issue Tracking"]},{"url":"https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34","label":"github.com/ollama/ollama/compare/v0.1.33...v0.1.34","hostname":"github.com","tags":["WEB","Release Notes"]},{"url":"https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58","label":"github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go","hostname":"github.com","tags":["WEB","Product"]},{"url":"https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032","label":"www.vicarius.io/vsociety/…","hostname":"www.vicarius.io","tags":["WEB","Exploit","Third Party Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37032.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37032.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37032","label":"nvd.nist.gov/vuln/detail/CVE-2024-37032","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/ollama/ollama/commit/2a21363bb756a7341d3d577f098583865bd7603f","label":"github.com/ollama/ollama/commit/2a21363bb756a7341d3d577f098583865bd7603f","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/advisories/GHSA-8hqg-whrw-pv92","label":"github.com/advisories/GHSA-8hqg-whrw-pv92","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/ollama/ollama","label":"github.com/ollama/ollama","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2901","label":"pkg.go.dev/vuln/GO-2024-2901","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:14599-1"],"duplicates":[],"related":["CGA-HV8X-JMGJ-FP3M","CGA-MM98-4JP5-2P7P","OPENSUSE-SU-2024:14599-1"]},"timeline":[{"kind":"published","date":"2024-05-31T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-27T20:57:59.559Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":63,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T06:13:50.526Z","stale":false,"partial":false}}