CVE-2024-37032
mediumpriority · track · 41EPSS 0.896 · 100 %ileexploit · weaponizedEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.4–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (5)
Public proof-of-concept and weaponised exploit code.
- exploit/linux/http/ollama_rce_cve_2024_37032Ollama Model Registry Path Traversal RCEweaponized · metasploit
- Bi0x/CVE-2024-37032Path traversal in Ollama with rogue registry serverPoC · poc_in_github
- ahboon/CVE-2024-37032-scannerCVE-2024-37032 scannerPoC · poc_in_github
- pankass/CVE-2024-37032_CVE-2024-45436CVE-2024-45436PoC · poc_in_github
affected products (4)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-8hqg-whrw-pv92Ollama does not validate the format of the digest (sha256 with 64 hex digits)2024-05-31ghsa · osvUS
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.
- GO-2024-2901Ollama does not validate the format of the digest (sha256 with 64 hex digits) in github.com/ollama/ollama2024-06-14vendor · osvUS
Ollama does not validate the format of the digest (sha256 with 64 hex digits) in github.com/ollama/ollama
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-37032/cnnvd
- https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58cnnvd
- https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34cnnvd
- https://github.com/ollama/ollama/pull/4175cnnvd
- https://github.com/ollama/ollama/releases/tag/v0.1.41Patchcnnvd
- https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58enisa_euvd
- https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34enisa_euvd
- https://github.com/ollama/ollama/pull/4175enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan