CVEvulnerability
CVE-2024-37032
8.8 HIGH
Official page ↗
- Status
- Analyzed
- Published
- 2024-05-31
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 8.8 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-22
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.
Affected configurations
• ollama ollama (< 0.1.34)
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58 Product
- https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34 Release Notes
- https://github.com/ollama/ollama/pull/4175 Issue Tracking
- https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032 Exploit, Third Party Advisory
- https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58 Product
- https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34 Release Notes
- https://github.com/ollama/ollama/pull/4175 Issue Tracking
- https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032 Exploit, Third Party Advisory