CVE-2026-103663
Published:October 08, 2026
Updated:October 10, 2026
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 Packages
https://github.com/ollama/ollama.git (GITHUB):
Affected version(s) >=v0.14.0-rc1 <v0.35.0Fix Suggestion:
Update to version v0.35.0github.com/ollama/ollama (GO):
Affected version(s) >=v0.14.0-rc1 <v0.35.0Fix Suggestion:
Update to version v0.35.0Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.1
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.71