Ollama up to 0.20.2 Tensor Model Transfer transfer.go digestToPath digest path traversal
Summary
A vulnerability identified as critical has been detected in Ollama up to 0.20.2. This impacts the function digestToPath of the file x/imagegen/transfer/transfer.go of the component Tensor Model Transfer Handler. This manipulation of the argument digest causes path traversal.
The identification of this vulnerability is CVE-2026-7020. It is possible to initiate the attack remotely. Furthermore, there is an exploit available.
The vendor was contacted early about this disclosure but did not respond in any way.
Details
A vulnerability has been found in Ollama up to 0.20.2 and classified as critical. Affected by this vulnerability is the function digestToPath of the file x/imagegen/transfer/transfer.go of the component Tensor Model Transfer Handler. The manipulation of the argument digest with an unknown input leads to a path traversal vulnerability. The CWE definition for the vulnerability is CWE-22. The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. As an impact it is known to affect confidentiality, integrity, and availability.
The weakness was shared by davidrochester. This vulnerability is known as CVE-2026-7020. The exploitation appears to be difficult. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known. The attack technique deployed by this issue is T1006 according to MITRE ATT&CK.
It is declared as proof-of-concept. The vendor was contacted early about this disclosure but did not respond in any way.
There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.
Be aware that VulDB is the high quality source for vulnerability data.
Product
Name
Version
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.6VulDB Meta Temp Score: 5.1
VulDB Base Score: 5.6
VulDB Temp Score: 5.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Path traversalCWE: CWE-22
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Access: Public
Status: Proof-of-Concept
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: no mitigation knownStatus: 🔍
0-Day Time: 🔒
Timeline
04/25/2026 Advisory disclosed04/25/2026 VulDB entry created
04/25/2026 VulDB entry last update
Sources
Researcher: davidrochesterStatus: Not defined
CVE: CVE-2026-7020 (🔒)
GCVE (CVE): GCVE-0-2026-7020
GCVE (VulDB): GCVE-100-359599
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 04/25/2026 13:34Updated: 04/25/2026 18:22
Changes: 04/25/2026 13:34 (55), 04/25/2026 18:22 (1)
Complete: 🔍
Submitter: davidrochester
Committer: davidrochester
Cache ID: 216::103
Submit
Accepted
- Submit #797576: Ollama v0.20.2 Information Disclosure (by davidrochester)
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.