Vulnerability · Published May 31, 2024 · Assigned by mitre

CVE-2024-37032

High 8.8

In plain English

A high-severity path traversal in the github.com/ollama/ollama package (Go). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 89.6% (higher than 99.8% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)89.6%top 0.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling3Metasploit, Nuclei, Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/ollama/ollama0.1.34GHSA-8hqg-whrw-pv92
Gogithub.com/ollama/ollama0.1.34GO-2024-2901

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References