{"id":"CVE-2024-37032","published":"2024-05-31T00:00:00Z","modified":"2025-03-27T20:57:59Z","title":"Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model…","vendor":null,"product":null,"tier":"core","eol":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-06T17:30:12.570473Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Ollama before 0.1.34 fails to validate the format of the sha256 digest used when resolving model paths, so malformed digests (fewer or more than 64 hex digits, or ones beginning with ../) are mishandled as a path restriction failure. The flaw lies in the path-handling component that maps model blob digests to filesystem locations. An attacker with network access and low-privilege credentials could submit crafted digests to reach files outside the intended blob directory, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:18:23Z"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.89633,"percentile":0.99788,"date":"2026-11-24","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-08-22","exploitedFirstSeen":"2024-08-22","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2024-37032","date":"2024-08-22"},{"url":"https://aws.amazon.com/blogs/security/real-time-malware-defense-leveraging-aws-network-firewall-active-threat-defense/","date":"2026-01-08"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":3,"pulses":[{"name":"Open by Default, Already Occupied: Threat Actors are Renting your Compute","url":"https://otx.alienvault.com/pulse/6afde5de85d121d01c609834","created":"2026-11-18"},{"name":"Real-time malware defense: Leveraging AWS Network Firewall active threat defense","url":"https://otx.alienvault.com/pulse/69620a62af4fb2efb50e852e","created":"2026-01-10"},{"name":"Six Major Vulnerabilities Discovered in Ollama AI Framework: Risks of Model Theft, Poisoning, and Denial-of-Service","url":"https://otx.alienvault.com/pulse/672e27888f8212659291d86f","created":"2024-11-08"}],"provenance":"machine"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/ollama/ollama/pull/4175","tags":[]},{"url":"https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34","tags":[]},{"url":"https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58","tags":[]},{"url":"https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Go","package":"github.com/ollama/ollama","vulnerableRanges":["<0.1.34"],"patched":["0.1.34"],"from":["GHSA-8hqg-whrw-pv92","GO-2024-2901"],"provenance":"source"}],"advisories":[{"id":"GHSA-8hqg-whrw-pv92","url":"https://github.com/advisories/GHSA-8hqg-whrw-pv92","severity":"MODERATE","ecosystem":"Go","package":"github.com/ollama/ollama","vulnerableRanges":["<0.1.34"],"patched":["0.1.34"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-1525","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1525","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":5,"skipped":0,"earliest":"2024-06-26","earliestUrl":"https://github.com/Bi0x/CVE-2024-37032","repos":[{"name":"Bi0x/CVE-2024-37032","url":"https://github.com/Bi0x/CVE-2024-37032","stars":56,"created":"2024-06-26"},{"name":"itzSh4dowxZ/CVE-2024-37032-PoC","url":"https://github.com/itzSh4dowxZ/CVE-2024-37032-PoC","stars":9,"created":"2026-05-19"},{"name":"pankass/CVE-2024-37032_CVE-2024-45436","url":"https://github.com/pankass/CVE-2024-37032_CVE-2024-45436","stars":8,"created":"2024-10-21"},{"name":"ahboon/CVE-2024-37032-scanner","url":"https://github.com/ahboon/CVE-2024-37032-scanner","stars":1,"created":"2024-07-10"},{"name":"dexteon/probllama-ollama-rce-cve-2024-37032","url":"https://github.com/dexteon/probllama-ollama-rce-cve-2024-37032","stars":0,"created":"2026-11-12"}]},"metasploit":[{"name":"Ollama Model Registry Path Traversal RCE","module":"exploit/linux/http/ollama_rce_cve_2024_37032","type":"exploit","disclosureDate":"2024-05-05","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/ollama_rce_cve_2024_37032.rb"}],"nuclei":[{"id":"CVE-2024-37032","name":"Ollama - Remote Code Execution","severity":"critical","path":"http/cves/2024/CVE-2024-37032.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-37032.yaml"}],"first":{"date":"2024-05-05","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/ollama_rce_cve_2024_37032.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-05-05","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2024-06-26","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/ollama_rce_cve_2024_37032.rb","provenance":"source"},{"date":"2024-05-31","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-37032","provenance":"source"},{"date":"2024-08-22","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2024-37032","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":67.5,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 824 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.96,"detail":"percentile 0.9979"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"5 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.37,"detail":"3 pulses"},{"name":"CVSS severity","points":6.16,"detail":"base score 8.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2024-28224","published":"2024-04-08","fixed":"0.1.29","kev":false,"link":{"from":"CVE-2024-28224","to":"CVE-2024-37032","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/ollama/ollama","fromFixed":"0.1.29","toFixed":"0.1.34","daysApart":53}]}},{"cve":"CVE-2024-37032","published":"2024-05-31","fixed":"0.1.34","kev":false},{"cve":"CVE-2025-44779","published":"2025-08-07","fixed":"0.1.34","kev":false},{"cve":"CVE-2024-39720","published":"2024-10-31","fixed":"0.1.46","kev":false,"link":{"from":"CVE-2024-37032","to":"CVE-2024-39720","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/ollama/ollama","fromFixed":"0.1.34","toFixed":"0.1.46","daysApart":153}]}},{"cve":"CVE-2024-45436","published":"2024-08-29","fixed":"0.1.47","kev":false}],"package":"Go:github.com/ollama/ollama"}}