CVE-2024-37032
Ollama does not validate the format of the digest (sha256 with 64 hex digits)
Reported by mitre · Published May 31, 2024
github.com/ollama/ollama is fixed in 0.1.34 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/ollama/ollama | Go Modules | 0.1.34 |
| ollama | ollama | 0.1.34 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| github.com | ollama/ollama | 0 |
| n/a | n/a | * |
| wolfi | ollama | 0 |
| chainguard | ollama | 0 |
Timeline
- May 31, 2024 CVE Published
- Jul 16, 2024 EPSS Score (30 in total, the first dated here)
- Aug 22, 2024 VulnCheck KEV Exploitation (459 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (12 in total, the first dated here)
- Jan 9, 2026 CVE Updated
- Mar 17, 2026 Security Advisory (2 in total, the first dated here)
- May 19, 2026 VulnCheck XDB Entry
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-37032
vulnetix vdb fixes CVE-2024-37032
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-37032/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart