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 ../…
Does this matter?
EPSS puts the probability of exploitation in the next 30 days at 89.6%, higher than 100% of all known CVEs. Patch or mitigate before the next change window.
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.
- CVSS 3.1
- 8.8 HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 89.63% probability · 100th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-22
- Affected
- ollama/ollama
- Source
- cve@mitre.org
References
- https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58Product
- https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34Release Notes
- https://github.com/ollama/ollama/pull/4175Issue Tracking
- https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032Exploit, Third Party Advisory
- https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58Product
- https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34Release Notes
- https://github.com/ollama/ollama/pull/4175Issue Tracking
- https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032Exploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.