CVE-2026-103663
6.9medium
Path Traversal leading to Remote Code Execution in Ollama
- Severity
- 6.9medium CVSS:4.0 by CERT-PL
- Exploit likelihood
- 0.74% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CERT-PL
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Ollama Ollama | from 0.14.3 before 0.35.0 | CVE List |
All scores
| CERT-PL | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N |
| CERT-PL | 9.4critical CVSS:4.0 | 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 |
Classification
References
| https://cert.pl/en/posts/2026/10/CVE-2026-103663/ | third-party-advisory | |
| https://ollama.com/ | product | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-103663 changed 2026-11-17 | CVE Terms of Use |
| NVD | CVE-2026-103663 changed 2026-11-17 | Public domain |