All vulnerabilities

Servers and applications

CVE-2026-42249

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…

Severity
High 7.7
Published
29 Apr 2026
Last changed
11 Nov 2026
Added to UpHeron
1 Nov 2026
Exploit chance
1% in the next 30 daysHigher than 64% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Path traversal (CWE-22)CWE-494
Attack
From the same local network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Sources
NVD

Description

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 update staging directory. An attacker who can influence update responses can exploit this flaw to write arbitrary executables to attacker‑chosen locations accessible to the current user, including the Windows Startup directory. This allows execution of arbitrary executables.

Critically, when chained with CVE‑2026‑42248 (Missing Signature Verification for Updates), an attacker can deliver malicious payloads that are written to sensitive locations and executed automatically.

From NVD. Shortened; the full text is there.

Affected software

SoftwareAffected versions
OllamaServers and applications · cpe:a:ollama:ollama
  • From 0.12.10 up to 0.17.5

About Ollama

software for running large language models (LLMs) on a local computer or in the cloud

From Wikidata, CC0 1.0.
Docker Hub pulls
200,724,007Docker Hub, 15 Nov 2026
GitHub stars
187,005GitHub, 15 Nov 2026
Forks
19,091GitHub, 15 Nov 2026
Latest release
v0.40.16GitHub, 15 Nov 2026
Released
9 Nov 2026GitHub
License
MIT LicenseWikidata
Written in
GoWikidata
First released
8 Jul 2023Wikidata
First published on GitHub
26 Jun 2023GitHub

Vulnerabilities in Ollama

In our list
28
Published in the last 12 months
13
Critical, last 12 months
1
High, last 12 months
9
Known exploited
0
Search the list for Ollama

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-42249
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-42249