CVE-2026-42249: Vulnerability in Ollama

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

CWE-22, CWE-494

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
None recorded
Patch deadline
No deadline set

Details

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-22, CWE-494
Published
29 Apr 2026
Last change
11 Nov 2026

Affected products

Affected versions and the first fixed release

  • Ollama From 0.12.10 through 0.17.5. No fixed version recorded

Advisories

Vendor and security advisories

Related