CVE-2026-7020

Ollama Tensor Model Transfer transfer.go digestToPath path traversal

State
Published
Severity
6.3 Medium
Published
Apr 26, 2026
Updated
May 6, 2026
Reserved
Apr 25, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.06.3 MediumCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:PVulDB
3.13.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:RVulDB
3.03.7 LowCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:RVulDB
2.02.6 LowAV:N/AC:H/Au:N/C:P/I:N/A:N/E:POC/RL:ND/RC:URVulDB

Weaknesses

Affected Products

ProductVersions
Ollaman/a
  • 0.20.0Affected
  • 0.20.1Affected
  • 0.20.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.