CVE-2024-37032 Ollama does not validate the format of the digest (sha256 with 64 hex digits)
HighCVSS 8.8
EPSS 89.6%
Framework module
Scanner template
- Published
- Updated
- Exploit status
- Public exploit available
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ollama | < 0.1.34 | 0.1.34 | Fixed |
| ollama(Go) | < 0.1.34 | 0.1.34 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ollama(Go) | < 0.1.34 | 0.1.34 |
| ollama | < 0.1.34 | 0.1.34 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch
- github.com patch
- github.com vendor-advisory
- github.com product
- github.com product
- github.com release-notes
- pkg.go.dev
- www.vicarius.io exploit third-party-advisory