CVE-2026-103663: Ollama - Path Traversal & Remote Code Execution
- Cve: CVE-2026-103663
- Name: Ollama - Path Traversal & Remote Code Execution
- 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.
- Impact: Unauthenticated attackers can achieve remote code execution as root, fully compromising the system.
- Remediation: Upgrade to version 0.35.0 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: remote_code_execution
- Requirements: Server process must have write access to /usr/lib/ollama directory
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.4
- Cvss 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
- Epss score: 0.00714
- Epss percentile: 0.54423
- Assignee: [email protected]
- Published at: 2026-10-08T14:16:46Z
- Age in days: 47
- Modified at: 2026-11-17T11:17:24Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-103663
- Nvd status: awaiting_analysis
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-23 | Relative Path Traversal |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/striga-ai/CVE-2026-103663 | poc-in-github | 2026-10-19 |
References
| Url | Source | Tags |
|---|---|---|
| https://cert.pl/en/posts/2026/10/CVE-2026-103663/ | nvd | |
| https://ollama.com/ | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ollama:ollama | >= 0.14.3, < 0.35.0 | no | cna | /v1/products/ollama/ollama |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ollama/ollama | fix | yes | /v1/repositories/ollama/ollama |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-10-19
- Remote: yes
- Exposed hosts: 833
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports