CVE-2026-7020
Path Traversal in Ollama Tensor Model Transfer Handler
Publication date: 2026-04-26
Last updated on: 2026-05-06
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| ollama | ollama | From 0.20.0 (inc) to 0.20.2 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| 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. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a security flaw in the Ollama software up to version 0.20.2, specifically in the function digestToPath within the Tensor Model Transfer Handler component. The flaw allows an attacker to manipulate the 'digest' argument, which results in a path traversal attack. This means an attacker can potentially access files or directories outside the intended scope by crafting the input in a certain way.
The attack can be performed remotely but is considered to have high complexity and is difficult to exploit. Despite this, the exploit code has been publicly released, increasing the risk of attacks.
How can this vulnerability impact me? :
This vulnerability can impact you by allowing an attacker to perform a path traversal attack remotely, potentially gaining unauthorized access to files or directories on the system running the vulnerable Ollama software. This could lead to exposure of sensitive data or unauthorized modification of files.
However, the attack is characterized by high complexity and is difficult to exploit, which may reduce the likelihood of successful exploitation.