All reports
Medium

Ollama does not validate the format of the digest (sha256 with 64 hex digits)

Affected versions

Version ranges need review.

Affected versions
< 0.1.34
Fixed version
0.1.34
Affected versions
<0.1.34
Fixed version
0.1.34

Exploitation

CVE-2024-37032

Probability of exploitation in the next 30 days: 89.63%

FIRST EPSS · 2026-11-20

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.

Links

Credits

  • lukas-braune