GHSA-8hqg-whrw-pv92

Suggest an improvement
Source
https://github.com/advisories/GHSA-8hqg-whrw-pv92
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-8hqg-whrw-pv92/GHSA-8hqg-whrw-pv92.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-8hqg-whrw-pv92
Aliases
Downstream
CGA (4)
Published
2024-05-31T06:30:27Z
Modified
2026-07-17T21:12:19Z
Summary
Ollama does not validate the format of the digest (sha256 with 64 hex digits)
Details

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.

Database specific
{
    "cwe_ids": [],
    "github_reviewed": true,
    "github_reviewed_at": "2024-06-02T22:32:29Z",
    "nvd_published_at": "2024-05-31T04:15:09Z",
    "severity": "MODERATE"
}
References

Affected packages

Go / github.com/ollama/ollama

Package

Name
github.com/ollama/ollama
View open source insights on deps.dev
Purl
pkg:golang/github.com/ollama/ollama

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.1.34

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-8hqg-whrw-pv92/GHSA-8hqg-whrw-pv92.json"