GitHub Advisoryadvisory · Go

GHSA-8hqg-whrw-pv92 Ollama does not validate the format of the digest (sha256 with 64 hex digits)

MEDIUM Published 2024-05-31 Modified 2024-09-06 Official page ↗
Aliases
CVE-2024-37032
Ecosystem
Go
Packages
github.com/ollama/ollama
Severity
Moderate
Reviewed
2024-06-02

Affected packages

• Go github.com/ollama/ollama: < 0.1.34 → fixed in 0.1.34

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.

Related

Alias · CVE (1)

  • CVE-2024-37032 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… vulnerability

References