CVE-2026-103663

CRITICAL CVSS 4.0: 9.4 EPSS 0.71%
Updated Nov 17, 2026
Ollama
Parameter Value
CVSS 9.4 (CRITICAL)
Affected Versions 0.14.3 — 0.35.0
Fixed In 0.35.0
Type CWE-23 (Relative Path Traversal), CWE-913
Vendor Ollama
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Ollama Ollama
cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*
0.14.3 0.35.0