Security Flaw in Ollama Affecting Tensor Model Transfer Handler
CVE-2026-7020

6.3MEDIUM

Key Information:

Vendor

Ollama

Status
Vendor
CVE Published:
26 April 2026

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

What is CVE-2026-7020?

A vulnerability has been identified in the Tensor Model Transfer Handler of Ollama, specifically in the function digestToPath located in the transfer.go file. This flaw allows an attacker to manipulate the digest argument, resulting in a path traversal issue that could enable access to unauthorized directories on the file system. The complexity of the exploit is high, making it challenging to execute. Due to the nature of this security flaw, it poses significant risks, especially as the exploit has been publicly disclosed. The vendor, Ollama, was notified about this vulnerability prior to its public release but did not provide any official response.

Affected Version(s)

Ollama 0.20.0

Ollama 0.20.1

Ollama 0.20.2

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
6.3
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
High
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

davidrochester
davidrochester (VulDB User)
davidrochester (VulDB User)
VulDB CNA Team
.