CVE-2026-7020: ollama Path Traversal
Vulnerability summary
CVE-2026-7020 is a medium (CVSS 6.3) Path Traversal vulnerability in ollama. EPSS estimates a 0.90% chance of exploitation in the next 30 days, higher than 59.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 3 · Related 4Timeline
- 26-04-2026PublishedVulnerability first disclosed.
- 06-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
11 scores · 5 sources · 4 versions- OSV · WolfiEcosystem advisory · calculated6.3MediumCVSS: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
- OSV · GoEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS: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
- NVDNIST2.9LowCVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XDiffers
- OSV · GoEcosystem advisory · calculated5.6MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- NVDNIST3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- NVDNIST2.6LowAV:N/AC:H/Au:N/C:P/I:N/A:N
EPSS trend
Probability
0.90%
Chance of exploitation in the next 30 days
Percentile
59%
Versus all other CVEs
30-day change
-0.01 pp
From 0.91% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (vuldb.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Chainguard2 products
- k8sgptAll versions (No fix recorded)
- modsAll versions (No fix recorded)
Wolfi2 products
- k8sgptAll versions (No fix recorded)
- modsAll versions (No fix recorded)
Github.com/ollama1 product
- ollama≤ 0.20.2 | All versions (No fix recorded)
Ollama1 product
- ollama≥ 0.20.0, ≤ 0.20.2
4 vendors · 6 products
References
7 links- github.com/ollama/ollamaPACKAGE