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…
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.001 (23.0th percentile) — read the EPSS interpretation.
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.
Affected products
- Ollama
- N/a Ollama — versions 0.20.0, 0.20.1, 0.20.2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- VDB-359599 | Ollama Tensor Model Transfer transfer.go digestToPath path traversal (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-359599 | CTI Indicators (IOB, IOC, TTP, IOA) (signature, Permissions Required, permissions-required)
- Submit #797576 | Ollama v0.20.2 Information Disclosure (Exploit, Third Party Advisory, VDB Entry, third-party-advisory)
Frequently asked questions
- What is CVE-2026-7020?
- CVE-2026-7020 is a low-severity vulnerability in Ollama, classified under Path Traversal. CVSS score: 3.7/10. Published 2026-04-26.
- How severe is CVE-2026-7020?
- Low severity. CVSS v3 base score is 3.7 out of 10.
- Is CVE-2026-7020 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.