Skip to main content
← All vulnerabilities
CVE-2024-37032GO-2024-2901GHSA-8HQG-WHRW-PV92

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.1.34
1 Metasploit module, 4 proofs of concept on GitHub, 1 Nuclei template
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

  • github.com/ollama/ollamaGo

    fixed in 0.1.34

References 10

GitHub · ollama/ollama

vicarius.io

GitHub · rapid7/metasploit-framework

GitHub · projectdiscovery/nuclei-templates

GitHub · Bi0x/CVE-2024-37032

GitHub · ahboon/CVE-2024-37032-scanner

GitHub · itzSh4dowxZ/CVE-2024-37032-PoC

GitHub · pankass/CVE-2024-37032_CVE-2024-45436