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 (58.1th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 58th percentile — 58.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.009 · newest: 0.009 · change: -0.000
Affected products
- Ollama
- Ollama — versions 0.20.0, 0.20.1, 0.20.2
Weakness classification (CWE)
Public proof-of-concept exploits
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)
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.