Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ollama/ollama
  4. ›
  5. CVE-2024-37032

CVE-2024-37032: Ollama does not validate the format of the digest (sha256 with 64 hex digits)

May 31, 2024 (updated June 2, 2024)

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.

References

  • github.com/advisories/GHSA-8hqg-whrw-pv92
  • github.com/ollama/ollama
  • github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go
  • github.com/ollama/ollama/compare/v0.1.33...v0.1.34
  • github.com/ollama/ollama/pull/4175
  • nvd.nist.gov/vuln/detail/CVE-2024-37032

Code Behaviors & Features

Detect and mitigate CVE-2024-37032 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.1.34

Fixed versions

  • 0.1.34

Solution

Upgrade to version 0.1.34 or above.

Source file

go/github.com/ollama/ollama/CVE-2024-37032.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:24 +0000.