Skip to content
HighVulnerability

CVE-2026-42249: Ollama for Windows remote code execution through update mechanism path traversal

Identifier
CVE-2026-42249
Published
Record updated
View JSON
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.