Skip to content
MediumVulnerability

CVE-2026-7020: Ollama path traversal in digest handling of Tensor Model Transfer

Identifier
CVE-2026-7020
Published
Record updated
View JSON
Affected
  • github.com/ollama/ollama <= 0.20.2
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%

Summary

A path traversal flaw has been reported in Ollama up to 0.20.2, in the digestToPath function of x/imagegen/transfer/transfer.go within the Tensor Model Transfer Handler component. Manipulating the digest argument enables the traversal, and the attack can be launched remotely but has high complexity and is reported as difficult to exploit. A public exploit exists, and the vendor did not respond to early disclosure.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.