CVE Explorer
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 and enabling files to be written outside the intended update staging directory.
An attacker who can infl
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-22","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:21f39ed82b5cd9d506976a62e86a30f7e291931109699b6dfcd4f6f43f4dea1b · sha256:e3de2637ed5e0171… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-494","description":"CWE-494: Download of Code Without Integrity Check","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:21f39ed82b5cd9d506976a62e86a30f7e291931109699b6dfcd4f6f43f4dea1b · sha256:e3de2637ed5e0171… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"defaultStatus":"unknown","platforms":["Windows"],"product":"Ollama","repo":"https://github.com/ollama/ollama","vendor":"Ollama","versions":[{"lessThanOrEqual":"0.17.5","status":"affected","version":"0.12.10","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:21f39ed82b5cd9d506976a62e86a30f7e291931109699b6dfcd4f6f43f4dea1b · sha256:e3de2637ed5e0171… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"HIGH","attackRequirements":"PRESENT","attackVector":"ADJACENT","baseScore":7.7,"baseSeverity":"HIGH","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"LOW","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"H…
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:21f39ed82b5cd9d506976a62e86a30f7e291931109699b6dfcd4f6f43f4dea1b · sha256:e3de2637ed5e0171… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-22","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:21f39ed82b5cd9d506976a62e86a30f7e291931109699b6dfcd4f6f43f4dea1b · sha256:e3de2637ed5e0171… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-494","description":"CWE-494: Download of Code Without Integrity Check","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:21f39ed82b5cd9d506976a62e86a30f7e291931109699b6dfcd4f6f43f4dea1b · sha256:e3de2637ed5e0171… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"tags":["third-party-advisory"],"url":"https://cert.pl/en/posts/2026/04/CVE-2026-42248/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:21f39ed82b5cd9d506976a62e86a30f7e291931109699b6dfcd4f6f43f4dea1b · sha256:e3de2637ed5e0171… · /containers/cna/references/0
{"tags":["product"],"url":"https://ollama.com/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:21f39ed82b5cd9d506976a62e86a30f7e291931109699b6dfcd4f6f43f4dea1b · sha256:e3de2637ed5e0171… · /containers/cna/references/1
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.