CVE-2024-37032Ollama Path Traversal
Ollama does not validate the format of the digest (sha256 with 64 hex digits)
Published May 31, 2024 · Updated Nov 5, 2026 · Also known as CGA-62rj-c55h-3wxp, CGA-c5qx-57rh-c645, CGA-c8rq-c9v9-mh4f, CGA-m552-2969-37wc, GHSA-8hqg-whrw-pv92, GO-2024-2901, TR-24-0596
Key Facts
Patch immediately- CVE-2024-37032 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Ollama, ollama-cpu (wolfi), github.com/ollama/ollama (go) and 1 more product.
- It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Aug 22, 2024. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 54% probability of exploitation in the next 30 days.
- Fixed versions are available, including github.com/ollama/ollama 0.1.34, govulncheck-vulndb 0.0.20241213T205935-1.1, Ollama 0.1.44-r0.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
54%
Higher than 99.2% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
68/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Aug 22, 2024
83 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
12
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2024-37032
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-37032
- advisoryGHSA advisory
- advisoryhttps://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58
- advisoryhttps://github.com/ollama/ollama/compare/v0.1.33...v0.1.34
- advisoryhttps://github.com/ollama/ollama/pull/4175
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| CIRCL KEV | Aug 22, 2024 | n/a | Not reported |
| Industry KEV feed | Aug 22, 2024 | n/a | Not reported |
Affected Products
14 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| OllamaOllama | See advisory | 0.1.34 |
| ollama-cpuwolfi | See advisory | 0.1.44-r0 |
| github.com/ollama/ollamago | See advisory | 0.1.34 |
| govulncheck-vulndbopensuse | See advisory | 0.0.20241213T205935-1.1 |
Patched Releases
github.com/ollama/ollama
0.1.34
govulncheck-vulndb
0.0.20241213T205935-1.1
Ollama
0.1.44-r0, 0.1.34
ollama-cpu
0.1.44-r0
Timeline
Publicly disclosed
May 31, 2024
Added to CIRCL KEV
Aug 22, 2024
Added to Industry KEV feed
Aug 22, 2024
Last updated
Nov 5, 2026
Weakness Type
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2024-37032
- advisoryGHSA advisory
- advisorygithub.com · modelpath_test.go
- advisorygithub.com · v0.1.33...v0.1.34
FAQ
Common Questions.
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: Ollama; ollama-cpu (wolfi); github.com/ollama/ollama (go), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Aug 22, 2024.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including github.com/ollama/ollama 0.1.34, govulncheck-vulndb 0.0.20241213T205935-1.1, Ollama 0.1.44-r0.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2024-37032 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo