Lucene search

K
osvGoogleOSV:GHSA-8HQG-WHRW-PV92
HistoryMay 31, 2024 - 6:30 a.m.

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

2024-05-3106:30:27
Google
osv.dev
22
ollama
validate
sha256
digest
format
model path

AI Score

6.6

Confidence

High

EPSS

0.001

Percentile

29.4%

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.

AI Score

6.6

Confidence

High

EPSS

0.001

Percentile

29.4%