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

CVE-2026-7020: Ollama is Vulnerable to Path Traversal

April 26, 2026 (updated May 5, 2026)

A security flaw has been discovered in Ollama up to 0.20.2. This affects the function digestToPath of the file x/imagegen/transfer/transfer.go of the component Tensor Model Transfer Handler. The manipulation of the argument digest results in path traversal. The attack may be performed from remote. This attack is characterized by high complexity. The exploitability is reported as difficult. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.

References

  • github.com/advisories/GHSA-x99g-8v8j-25j2
  • nvd.nist.gov/vuln/detail/CVE-2026-7020
  • vuldb.com/submit/797576
  • vuldb.com/vuln/359599
  • vuldb.com/vuln/359599/cti

Code Behaviors & Features

Detect and mitigate CVE-2026-7020 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 up to 0.20.2

Solution

Unfortunately, there is no solution available yet.

Impact 5.6 MEDIUM

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

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-2026-7020.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Fri, 15 May 2026 12:20:05 +0000.