What is 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.
The record classifies CVE-2026-7020 under weakness class CWE-22. Its CVSS v3 base vector states that the flaw is reachable remotely over the network, needs no prior authentication, needs no user interaction. 1 affected-product entry is recorded, across 1 vendor, listed below. The identifier was first published 207 days ago.
Severity and exploitation probability
- CVSS v3.1 base score
- 3.7 — LOW
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R - CVSS v4.0 base score
- 6.3
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 - EPSS (FIRST)
- 0.9% probability of exploitation in the next 30 days, higher than 58.4% of all scored CVEs
- CISA KEV
- Not listed in the CISA Known Exploited Vulnerabilities catalog
- Threadlinqs priority
- 6.2/10 — a Threadlinqs composite of the CVSS base score, the EPSS percentile and public exploit availability
- Published
- 2026-04-26
Is CVE-2026-7020 being exploited?
Weaponised exploit code for CVE-2026-7020 is publicly available. 1 public proof-of-concept repository is tracked for this identifier.
- davidrxchester/CVE-2026-7020 (github)
Affected products and versions
- (vendor unspecified): Ollama
Affected software packages:
go:github.com/ollama/ollama
How to fix CVE-2026-7020
No vendor patch reference has been recorded for CVE-2026-7020 in the tracked sources. Follow the references below for a fix, and treat the products listed above as exposed until the vendor states otherwise.
Threat activity tracking CVE-2026-7020
1 tracked threat in the Threadlinqs corpus references CVE-2026-7020, either in the campaign’s CVE list or as an indicator on the campaign record.
Sources
Enriched from CVE.org, FIRST EPSS, GitHub Security Advisories, public proof-of-concept repositories.