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

CVE-2024-45436: Ollama can extract members of a ZIP archive outside of the parent directory

August 29, 2024

extractFromZipFile in model.go in Ollama before 0.1.47 can extract members of a ZIP archive outside of the parent directory.

References

  • github.com/advisories/GHSA-846m-99qv-67mg
  • github.com/ollama/ollama
  • github.com/ollama/ollama/commit/123a722a6f541e300bc8e34297ac378ebe23f527
  • github.com/ollama/ollama/compare/v0.1.46...v0.1.47
  • github.com/ollama/ollama/pull/5314
  • nvd.nist.gov/vuln/detail/CVE-2024-45436

Code Behaviors & Features

Detect and mitigate CVE-2024-45436 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.47

Fixed versions

  • 0.1.47

Solution

Upgrade to version 0.1.47 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/ollama/ollama/CVE-2024-45436.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:49 +0000.