Path Traversal in Ollama
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.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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.7 (Low). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS 0.009, 60.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ollama
- Ollama — versions 0.20.0, 0.20.1, 0.20.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- davidrxchester/CVE-2026-7020 (last pushed 2026-04-25): POC for CVE-2026-7720 - Ollama tensor digest path traversal
References
- vuldb.com/vuln/359599 (technical-description, VDB Entry, Third Party Advisory, vdb-entry)
- vuldb.com/vuln/359599/cti (signature, Permissions Required, permissions-required)
- vuldb.com/submit/797576 (Exploit, VDB Entry, Third Party Advisory, third-party-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.