CVE-2024-37032
JSON

8.8high

Ollama does not validate the format of the digest (sha256 with 64 hex digits)

Severity
8.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
89.6% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-8hqg-whrw-pv92GO-2024-2901

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
github.com/ollama/ollama (Go)before 0.1.34GitHub Advisory Database, Go Vulnerability Database
ollama ollamabefore 0.1.34NVD

All scores

CISA-ADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHubmedium rating

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

Go Vulnerability Database

Ollama does not validate the format of the digest (sha256 with 64 hex digits) in github.com/ollama/ollama

NVD (es)

Ollama anterior a 0.1.34 no valida el formato del resumen (sha256 con 64 dígitos hexadecimales) al obtener la ruta del modelo y, por lo tanto, maneja mal los casos de prueba TestGetBlobsPath, como menos de 64 dígitos hexadecimales, más de 64 dígitos hexadecimales o una inicial. ../ subcadena.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2024-37032 changed 2025-03-27CVE Terms of Use
GitHub Advisory DatabaseGHSA-8hqg-whrw-pv92 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2901 changed 2026-02-04CC-BY-4.0
NVDCVE-2024-37032 changed 2026-06-17Public domain