CVE-2024-37032
HIGH 8.8CVSS 3.1Ollama does not validate the format of the digest (sha256 with 64 hex digits)
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.
- Published
- 31 May 2024
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-8hqg-whrw-pv92GO-2024-2901
- Sources
- NVDJSONOSV GHSA-8hqg-whrw-pv92JSONOSV GO-2024-2901JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ollama | ollamacpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:* |
< 0.1.34 | 0.1.34 |
| OSV | Go | github.com/ollama/ollama | < 0.1.34 | 0.1.34 |
References
- https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58 · Product, WEB
- https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34 · Release Notes, WEB
- https://github.com/ollama/ollama/pull/4175 · Issue Tracking, WEB, FIX
- https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-37032 · ADVISORY
- https://github.com/ollama/ollama/commit/2a21363bb756a7341d3d577f098583865bd7603f · WEB, FIX
- https://github.com/advisories/GHSA-8hqg-whrw-pv92 · ADVISORY
- https://github.com/ollama/ollama · PACKAGE
- https://pkg.go.dev/vuln/GO-2024-2901 · WEB
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 31 May 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Jun 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 31 May 2024)