Patchfirst
CVE-2024-37032 Public exploit High · 8.8 EPSS 89.6%

Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model…

Fix:upgrade ollama to 0.17.1 or later also fixes CVE-2026-7482 Details ↓

Summary

Ollama before 0.1.34 fails to validate the format of the sha256 digest used when resolving model paths, so malformed digests (fewer or more than 64 hex digits, or ones beginning with ../) are mishandled as a path restriction failure. The flaw lies in the path-handling component that maps model blob digests to filesystem locations. An attacker with network access and low-privilege credentials could submit crafted digests to reach files outside the intended blob directory, with no user interaction or special configuration required.

Official description · CVE.org

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.

Breakdown
67.5 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 3 months after disclosure. Public exploit code (Metasploit) was available 26 days before disclosure.

  1. Public exploit codeMetasploit26 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+3 mo

5 fixes in github.com/ollama/ollama over 16 months. The latest fix listed for github.com/ollama/ollama is 0.1.47.

Fixes in github.com/ollama/ollamaGo package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 0.1.29CVE-2024-282248 Apr 2024
  2. 0.1.34CVE-2024-3703231 May 2024
  3. 0.1.34CVE-2025-447797 Aug 2025
  4. 0.1.46CVE-2024-3972031 Oct 2024
  5. 0.1.47CVE-2024-4543629 Aug 2024Latest listed

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: github.com/ollama/ollama.

Gogithub.com/ollama/ollamaGHSA-8hqg-whrw-pv92GO-2024-2901

Upgrade to 0.17.1 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2026-7482).

Gogo get github.com/ollama/ollama@v0.17.1

First fixed in 0.1.34 for CVE-2024-37032.

Affected versions

If you runUpgrade to
All versions before 0.1.340.17.1first fix for this CVE: 0.1.34

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 3 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close