Advisory

GHSA-8hqg-whrw-pv92

Also known as: CVE-2024-37032, GO-2024-2901

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-05-31 06:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/ollama/ollama

Go · All systems

Affected

  • introduced 0, fixed 0.1.34 (semver)

Fixed versions

0.1.34

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences