Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-7020: A security flaw has been discovered in Ollama up to 0.20.2

38
This week
LOW 3.7REMOTEUPGRADE

CVE-2026-7020 is a low-severity flaw (CVSS 3.7) affecting ollama. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 us

Why this priority

  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score3.7 (Low)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionNone
EPSS exploit chance0.9% (top 40%)
CISA exploited listNo
WeaknessCWE-22
Published2026-04-26
Last modified2026-06-17
Publisher (CNA): VulDB · Vendor: ollama

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

ollama ollama UPGRADE
Affected: >= 0.20.0 and <= 0.20.2
Fixed in: newer than 0.20.2
Safe to downgrade to: a release before 0.20.0
1. Check installed version
apt-cache policy ollama || rpm -q ollama || ollama --version
2. UPGRADE to newer than 0.20.2 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade ollama
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade ollama
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 0.20.0 (Debian / Ubuntu)
apt-cache madison ollama sudo apt install ollama=<VERSION_BEFORE_0.20.0> sudo apt-mark hold ollama
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list ollama sudo dnf downgrade ollama-<VERSION_BEFORE_0.20.0> sudo dnf versionlock add ollama
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-7020?

ollama: upgrade to newer than 0.20.2. Exact commands for each OS are on this page.

Is CVE-2026-7020 being exploited?

CVE-2026-7020 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-7020 affect?

CVE-2026-7020 affects ollama. Severity is low (CVSS 3.7). 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 i

How urgent is CVE-2026-7020?

Priority 38/100. Public exploit reference; Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.