# CVE-2026-7020: 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.

Source: https://junglewise.ai/threats/cve-2026-7020-ollama-is-vulnerable-to-path-traversal  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-26  
License: CC BY 4.0 with a link back

CVE-2026-7020 · Severity: low · CVSS 3.7 · Published 2026-04-26

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.

Technologies: [github.com/ollama/ollama (Go)](https://junglewise.ai/threats/technologies/github-com-ollama-ollama), [Ollama](https://junglewise.ai/threats/technologies/ollama). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [Ollama](https://junglewise.ai/threats/vendors/ollama).

## Quick answers

**Is CVE-2026-7020 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-7020 being exploited in the wild.

**How severe is CVE-2026-7020?** Low severity, with a CVSS score of 3.7, published 26 April 2026.

**Which products and versions are affected?** github.com/ollama/ollama (Go) SEMVER:introduced=0, SEMVER:introduced=0,last_affected=0.20.2.

**Is there a fix for CVE-2026-7020?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2026-7020?** Check whether you run github.com/ollama/ollama (Go) or Ollama at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- github.com/ollama/ollama (Go) SEMVER:introduced=0, SEMVER:introduced=0,last_affected=0.20.2
- Ollama

## Identifiers

- CVE-2026-7020
- GHSA-x99g-8v8j-25j2
- GO-2026-5750

## Related threats

- [Ollama server-side request forgery in Pull API](https://junglewise.ai/threats/cve-2026-108836-a-vulnerability-has-been-found-in-ollama-up-to-0-34-1-the)
- [Ollama authorization bypass in experimental agent Bash tool approval](https://junglewise.ai/threats/cve-2026-102697-ollama-versions-0-14-0-before-0-31-2-contain-an-incorrect)
- [Ollama integer overflow in GGUF decoder](https://junglewise.ai/threats/cve-2026-86289-ollama-integer-overflow-in-gguf-decoder)
- [Ollama unvalidated redirect in model blob downloads](https://junglewise.ai/threats/cve-2026-85180-ollama-unvalidated-redirect-in-model-blob-downloads)
- [Ollama uncontrolled memory allocation in GGUF metadata parser](https://junglewise.ai/threats/cve-2026-65315-ollama-uncontrolled-memory-allocation-in-gguf-metadata-parser)
