CVE-2026-103663Ollama
Path traversal in Ollama /api/pull endpoint
Critical 9.4 No auth needed
Follow: this CVE · Ollama · Ollama We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 4.0
- 9.4
- EPSS
- —
- Auth required
- No
- Published
- Oct 8, 2026
- Updated
- Nov 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Ollama is vulnerable to path traversal in the `/api/pull` endpoint due to insufficient validation of layer digests. An unauthenticated remote attacker can write malicious files outside the model store and, if the process has write access to `/usr/lib/ollama`, achieve remote code execution as root on server restart.
Show the original NVD text
Ollama is vulnerable to path traversal in the `/api/pull` endpoint due to insufficient validation of layer digests by the `digestToPath` function. An unauthenticated remote attacker can specify a path traversal sequence as a layer digest, causing a malicious binary to be written outside the model store.
Critically if the server process has write access to `/usr/lib/ollama` (the default in most Ollama Docker images), an attacker can write the malicious file to that directory. On the next server restart, the file is loaded and executed, resulting in remote code execution as root.
This issue was fixed in version 0.35.0.
What to do
Patch available · fixed versions: 0.35.0
Update Ollama to version 0.35.0 or later to apply proper validation of layer digests.
- Apply the vendor's security update for Ollama.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- Ollama · Ollama
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.