Skip to content

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.

PackageAffectedFixed inStatus
ollama < 0.1.34 0.1.34 Fixed
ollama(Go) < 0.1.34 0.1.34 Fixed

Affected products

ProductAffected versionsFixed in
ollama(Go) < 0.1.34 0.1.34
ollama < 0.1.34 0.1.34

References