~ / search / GHSA-8hqg-whrw-pv92

GHSA-8hqg-whrw-pv92

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

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-37032

Packages

EcosystemPackageAffectedFixed in
Go github.com/ollama/ollama < 0.1.34 0.1.34

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.