lowCVSS 3.7NVD status: Modified

CVE-2026-7020

Ollama: 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-06-17
Affected versions
ollama >= 0.20.0, <= 0.20.2
Fixed insee the vendor advisory
WeaknessCWE-22
CISA KEVnot listed

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.

Does CVE-2026-7020 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for Ollama.
Check my stack

What to do

  • NVD lists no fixed version yet: follow the vendor advisory below and keep Ollama off the public internet until a fix ships.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Read more

Other Ollama CVEs

All Ollama CVEs