HighVulnerability
CVE-2026-42249: Ollama for Windows remote code execution through update mechanism path traversal
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-42249
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 1.0%
Summary
CVE-2026-42249 affects Ollama for Windows. Its update mechanism passes values from attacker-controlled HTTP response headers directly to filepath.Join without validation, so ../ sequences let files be written outside the update staging directory, including the Windows Startup directory. Chained with CVE-2026-42248 (Missing Signature Verification for Updates), this yields automatic, persistent code execution without user awareness. Versions 0.12.10 to 0.17.5 were tested and confirmed vulnerable; other versions were not tested.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Topics
Related items
- MediumCVE-2026-130358: AdminNeo before 5.9.1 contains a missing authentication vulnerability in the ClaudeSqlPlugin, GeminiSqlPlugin, and…Similar attack · NVD/CVE Database
- HighGHSA-8vf2-hxg5-crqh: Kubeshark: MCP `start_kubeshark` argument injection via `pod_regex` → image redirect → cluster takeoverSimilar attack · GitHub Advisory Database
- Medium'Sleeper Agent' Tactic Hides Payloads in Open-Weight AI ModelsSimilar attack · Dark Reading
- MediumCursor Supply Chain Attack Started at Fireworks AISimilar attack · SecurityWeek
- MediumAmazon Uncovers AI Agent Campaign Targeting LiteLLM, Dify, and Other Apps for API KeysSimilar attack · The Hacker News