Directory Traversal Affecting ollama package, versions <0.20.3-r0


Severity

Recommended
0.0
low
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.91% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-MINIMOSLATEST-OLLAMA-16414616
  • published4 May 2026
  • disclosed26 Apr 2026

Introduced: 26 Apr 2026

CVE-2026-7020  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Minimos:latest ollama to version 0.20.3-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ollama package and not the ollama package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1