nday
CVE-2026-42249

Remote Code Execution in Ollama via Update Mechanism

Ollama / Ollama

に公開されました。nday はまだ修正の根拠を取得していません。修正がないという意味ではありません。PoC ソース 4 件中 1 件(metasploit)に掲載されています。CISA KEV には現時点で未掲載です。

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

path traversal
CWE-22, stated by the CNA CERT-PL、NVD, republishing [email protected]
adjacent network
AV:A in 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 (CVSS 4.0) from the CNA CERT-PL
no authentication required
PR:N in 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 (CVSS 4.0) from the CNA CERT-PL
no user interaction
UI:N in 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 (CVSS 4.0) from the CNA CERT-PL
Metasploit
Metasploit modules exploit/windows/persistence/ollama_auto_update
現在の段階
POC
公開日時
CVSS 基本値
7.7 HIGH v4.0

ライフサイクル

横軸は UTC。点=分単位、幅広の帯=日付のみ、白抜き=不明または推定。
日時不明
DIS公開
04-29T11:44Z
PAT修正
記録なし
ANA解析
記録なし
POCPoC
metasploit
ITW悪用
記録なし
KEVKEV
記録なし

概要

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:A
Adjacent: only from a nearby network, such as the same LAN segment or Bluetooth range
Attack complexity AC:H
High: the attacker must evade or get around security measures such as ASLR or DEP, or obtain target-specific secrets
Attack requirements AT:P
Present: success depends on specific deployment or execution conditions, such as a race condition, a non-default setting or a position on the network path
Privileges required PR:N
None: no account or authorization needed
User interaction UI:N
None: no action by anyone other than the attacker

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

CVSS 4.0 vector from the CVE record, scored by the CNA CERT-PL.

イベント履歴

+DIS公開

CERT-PL が CVE レコードを公開。CVSS 基本値 7.7(重要)。

出典 cvelist · nday が に一括取り込み · 生データ
{
  "id": 59400,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-42249",
  "occurred_at": "2026-04-29T11:44:39.807Z",
  "observed_at": "2026-11-12T16:27:38.849571Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "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",
      "version": "4.0",
      "base_score": 7.7,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2026-04-29T13:20:16.814725Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2026-04-29T11:44:39.807Z",
    "assigner_short_name": "CERT-PL"
  }
}
日時不明ソースに時刻なし
+POCPoC 公開

Metasploit がモジュール exploit/windows/persistence/ollama_auto_update(Ollama Windows Auto-Update Path Traversal Persistence)を収録。モジュールの公開日時はソースに記載なし。

出典 metasploit exploit/windows/persistence/ollama_auto_update · nday が に一括取り込み · 生データ
{
  "id": 52939,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/persistence/ollama_auto_update.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/windows/persistence/ollama_auto_update",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/persistence/ollama_auto_update.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/windows/persistence/ollama_auto_update.rb",
    "rank": 600,
    "check": true,
    "title": "Ollama Windows Auto-Update Path Traversal Persistence",
    "cve_ids": [
      "CVE-2026-42248",
      "CVE-2026-42249"
    ],
    "fullname": "exploit/windows/persistence/ollama_auto_update",
    "rank_name": "excellent",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2026-06-08 08:39:59 +0000",
    "vuln_disclosure_date": "2026-04-29"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

研究者の投稿

過去 7 日間に 0 人の研究者が言及

リストの研究者が X でこの CVE に触れた投稿です。原文のまま表示し、nday は検証していません。

リストの研究者が X でこの CVE に触れた投稿は、まだ収集していません。

Discussion

0 comments

No comments yet.