OllamaPublished 31 May 2024NVD status: Analyzed

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 mishandles the TestGetBlobsPath test cases such as fewer than 64 hex digits, more than 64…

ComponentOllama
Severityhigh (CVSS 8.8)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published (NVD)2024-05-31
Last modified2026-06-17
Affected versions
< 0.1.34
from the GitHub-reviewed advisory GHSA-8hqg-whrw-pv92
Fixed in0.1.34
WeaknessCWE-22
CISA KEVnot listed

Versions, checked against NVD

NVD's analysis gives the same ranges as the GitHub-reviewed advisory GHSA-8hqg-whrw-pv92.

NVD 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.

What to do

Sources

Read more