Lucene search

K
githubGitHub Advisory DatabaseGHSA-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
GitHub Advisory Database
github.com
22
ollama
sha256 digest
mishandling
model paths
software

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.

Affected configurations

Vulners
Node
ollamaollamaRange<0.1.34
VendorProductVersionCPE
ollamaollama*cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*

AI Score

6.6

Confidence

High

EPSS

0.001

Percentile

29.4%