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
Related
Published
2024-05-31T06:30:27Z
Modified
2024-09-06T21:37:30Z
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
{
    "nvd_published_at": "2024-05-31T04:15:09Z",
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-06-02T22:32:29Z"
}
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
0Unknown introduced version / All previous versions are affected
Fixed
0.1.34