Skip to content
Fencer Vulns
high 8.8

CVE-2024-37032 in the critical feed json

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

published 2024-05-31 2 y ago modified 2026-09-10 1 mo ago also GHSA-8hqg-whrw-pv92 , GO-2024-2901 , EUVD-2024-1525

cvss
8.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
89.6%
EPSS 89.6% chance of exploitation in 30 days, percentile 99.7%
public exploits
1
Metasploit, plus a Nuclei check

Summary

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.

Patch / fix

  • go github.com/ollama/ollama 0.1.34
  • ollama ollama 0.1.34
  • govulncheck-vulndb openSUSE Tumbleweed 0.0.20241213T205935-1.1

opensuse advisories openSUSE-SU-2024:14599-1

Timeline

  1. First public exploit (Metasploit exploit/linux/http/ollama_rce_cve_2024_37032)
  2. Published

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

89.63% chance of exploitation in the next 30 days, higher than 99.7% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
go github.com/ollama/ollama
<0.1.34
0.1.34

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.