BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-42249 in Ollama and 1 more product

Critical 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 values derived from HTTP headers without validation. These values are passed dir...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.19.8
CVSS v47.7
EPSS1.0%
EPSS percentile63th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Ollama Ollama ≥ 0.12.10, ≤ 0.17.5

Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Microsoft Windows

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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. Because Ollama for Windows performs silent automatic updates and executes staged binaries without user interaction, this results in automatic and persistent code execution without user awareness. Maintainers of this project were notified early about this vulnerability, but didn't respond with the details of vulnerability or vulnerable version range. Versions from 0.12.10 to 0.17.5 were tested and confirmed as vulnerable, other versions were not tested but might also be vulnerable.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-42249
BreachSpider IDBS-2026-GLOBAL-075330-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2026-04-29
Last modified2026-11-11
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-22: Path Traversal

Attacker manipulates file path inputs to access files outside the intended directory.

CWE-494: CWE-494

Related attack patterns (CAPEC)

CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22

CAPEC-76 Manipulating Web Input to File System Calls via CWE-22

CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22

CAPEC-79 Using Slashes in Alternate Encoding via CWE-22

CAPEC-187 Malicious Automated Software Update via Redirection via CWE-494

Show all 17

CAPEC-533 Malicious Manual Software Update via CWE-494

CAPEC-538 Open-Source Library Manipulation via CWE-494

CAPEC-657 Malicious Automated Software Update via Spoofing via CWE-494

CAPEC-692 Spoof Version Control System Commit Metadata via CWE-494

CAPEC-693 StarJacking via CWE-494

CAPEC-695 Repo Jacking via CWE-494

CAPEC-126 Path Traversal via CWE-22

CAPEC-185 Malicious Software Download via CWE-494

CAPEC-186 Malicious Software Update via CWE-494

CAPEC-662 Adversary in the Browser (AiTB) via CWE-494

CAPEC-691 Spoof Open-Source Software Metadata via CWE-494

CAPEC-184 Software Integrity Attack via CWE-494

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Ollama for Windows contains a Remote Code Execution vulnerability in its update mechanism due to improper handling of attacker-controlled HTTP response headers, allowing path traversal and potential code execution.

The vulnerability arises from the application's use of unvalidated HTTP response headers to construct local file paths during the update process. Attackers can exploit this by injecting path traversal sequences (e.g., ../) into the headers, leading to arbitrary file writes and potential remote code execution.

Questions

What is 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, allowing path traversal and potential code execution.

What is the CVSS score for CVE-2026-42249?

CVE-2026-42249 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.0%.

Is CVE-2026-42249 actively exploited?

No confirmed active exploitation of CVE-2026-42249 as of 2026-11-12.

How do I remediate CVE-2026-42249?

Priority: IMMEDIATE.

What systems are affected by CVE-2026-42249?

CVE-2026-42249 affects Ollama Ollama.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Ollama","product":"Ollama","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-11.