CVE-2026-103663
published critical CVSS 4.0 · 9.4Path Traversal leading to Remote Code Execution in Ollama
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ollama | — | Ollama0.14.3 to < 0.35.0 · Other versions: unknown | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.4 / 10
- Severity
- critical
- Provider
- CERT-PL · cna
- Vector string
- 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
- Scenarios
- en: Server process has write access to `/usr/lib/ollama`
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 4.0 | 6.9 | medium | CERT-PL · cna | 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 | en: Server process does not have write access to `/usr/lib/ollama` |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Ollama | Ollama | 0.14.3 to < 0.35.0 (affected · semver)Default: unknown | CERT-PL · cna |
Weaknesses
2- CWE-23 CWE-23 Relative Path Traversal
- CWE-913 CWE-913 Improper Control of Dynamically-Managed Code Resources
References
2Provider assertions
2CERT-PL · cna
Path Traversal leading to Remote Code Execution in Ollama
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ee3b04f6b41844571cffc880f8ac3e1422aedc3263753ba7e6ffe61d5f699b39
- Ingested
- 17 Nov 2026, 11:17:48 UTC
- Source record
- Official CVE record