OllamaPublished 26 Apr 2026NVD status: Modified

CVE-2026-7020

A security flaw has been discovered in Ollama up to 0.20.2.

ComponentOllama
Severitylow (CVSS 3.7)
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Published (NVD)2026-04-26
Last modified2026-11-11
Affected versions
<= 0.20.2
from the GitHub-reviewed advisory GHSA-x99g-8v8j-25j2
Fixed insee the vendor advisory
WeaknessCWE-22
CISA KEVnot listed

Versions, checked against NVD

NVD's analysis gives the same ranges as the GitHub-reviewed advisory GHSA-x99g-8v8j-25j2.

NVD 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.

What to do

Sources

Read more