Ollama is Vulnerable to Path Traversal in github.com/ollama/ollama
Ollama is Vulnerable to Path Traversal in github.com/ollama/ollama
02 / AFFECTED SOFTWARE
Affected packages
6 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
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.
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.
Ollama is Vulnerable to Path Traversal in github.com/ollama/ollama
05 / REFERENCES
Further evidence
- https://github.com/ollama/ollama
- https://nvd.nist.gov/vuln/detail/CVE-2026-7020
- https://vuldb.com/submit/797576
- https://vuldb.com/vuln/359599
- https://vuldb.com/vuln/359599/cti
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7020.json
- https://github.com/advisories/GHSA-x99g-8v8j-25j2