CVE-2026-103663 Ollama · Ollama
AI summary
Ollama's /api/pull endpoint has a path traversal flaw due to insufficient layer digest validation, letting an unauthenticated remote attacker write a malicious binary outside the model store. If the server can write to /usr/lib/ollama (default in most Docker images), the file is executed on restart, giving root code execution. Critical (CVSS 9.4); fixed in 0.35.0, upgrade urgently.
Official description
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.
- Published
- 2026-10-08 14:16 UTC
- Modified
- 2026-11-17 11:17 UTC
- CVSS
- 9.4 Critical
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 - EPSS
- 0.94% (percentile 59)
- ENISA EUVD
- EUVD-2026-94962
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
- CWE
- CWE-23
CVSS vector
- Attack vector
- network
- Attack complexity
- low
- Attack requirements
- none
- Privileges required
- none
- User interaction
- passive
- Confidentiality
- high
- Integrity
- high
- Availability
- high
References
- NVD · CVE.org
- cert.pl
https://cert.pl/en/posts/2026/10/CVE-2026-103663/ - ollama.com
https://ollama.com/