CVE-2024-37032

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.

Severity
HIGH
CVSS v3
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source adp
Exploit chance (EPSS)
89.633%
chance of exploitation in the next 30 days
higher than 99.8% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 1
Nuclei templates: 1

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impactpartial
Scored2024-06-06

Timeline

  1. 2024-05-31Published by the CNA00:00 UTC
  2. 2024-05-31GitHub advisory published (GHSA-8hqg-whrw-pv92)same day
  3. 2024-06-06CISA SSVC decision recorded6 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Nuclei templates:

GitHub advisory GHSA-8hqg-whrw-pv92, affected packages:

PackageVulnerable versionsFixed in
Go github.com/ollama/ollamabefore 0.1.340.1.34

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
ollama ollamabefore 0.1.34fixed in 0.1.340.1.34

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources