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
12
ollama
sha256 digest
mishandling
model paths
software

6.6 Medium

AI Score

Confidence

High

0 Low

EPSS

Percentile

0.0%

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
github.com\/ollama\/ollamaRange<0.1.34
CPENameOperatorVersion
github.com/ollama/ollamalt0.1.34

6.6 Medium

AI Score

Confidence

High

0 Low

EPSS

Percentile

0.0%