Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-42249: Ollama for Windows contains a Remote Code Execution vulnerability in its update mechanism due to improper hand

60
This week
CRITICAL 9.8REMOTEUPGRADE

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

Ollama for Windows contains a Remote Code Execution vulnerability in its update mechanism due to improper handling of attacker‑controlled HTTP response headers. When downloading updates, the application constructs local file paths using values derived from HTTP headers without validation. These values are passed directly to filepath.Join, allowing path traversal sequences (../) to be resolved and enabling files to be written outside the intended

Why this priority

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

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance1.0% (top 36%)
CISA exploited listNo
WeaknessCWE-22, CWE-494
Published2026-04-29
Last modified2026-06-17
Publisher (CNA): CERT.PL · 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.12.10 and <= 0.17.5
Fixed in: newer than 0.17.5
Safe to downgrade to: a release before 0.12.10
1. Check installed version
apt-cache policy ollama || rpm -q ollama || ollama --version
2. UPGRADE to newer than 0.17.5 (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.12.10 (Debian / Ubuntu)
apt-cache madison ollama sudo apt install ollama=<VERSION_BEFORE_0.12.10> 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.12.10> 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.

Exact fixes by distribution

Fedora 46 · python-python-ulid · FIXED · 4.1.0-2.fc46 · FEDORA-2026-3652e4825b · source
sudo dnf upgrade --advisory=FEDORA-2026-3652e4825b
Fedora ELN · gmp · FIXED · 6.3.0-7.eln159 · FEDORA-2026-1139089b36 · source
sudo dnf upgrade --advisory=FEDORA-2026-1139089b36

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

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-42249?

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

Is CVE-2026-42249 being exploited?

CVE-2026-42249 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-42249 affect?

CVE-2026-42249 affects ollama. Severity is critical (CVSS 9.8). Ollama for Windows contains a Remote Code Execution vulnerability in its update mechanism due to improper handling of attacker‑controlled HTTP response headers. When downloading updates, the application constructs local file paths using val

How urgent is CVE-2026-42249?

Priority 60/100. Critical severity; Public exploit reference; Remotely exploitable, no login, no user action

Software pages

Windows vulnerabilities

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.