Path Traversal Vulnerability in Ollama Product
CVE-2026-103663
Key facts: CVE-2026-103663 is a critical severity (CVSS 9.4) vulnerability in Ollama. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 0.9%, the estimated probability of exploitation in the next 30 days. Fixed in Ollama 0.35.0.
What is CVE-2026-103663?
CVE-2026-103663 is a significant vulnerability that affects the Ollama product developed by Ollama. This vulnerability arises from a path traversal issue present in the /api/pull endpoint, specifically due to inadequate validation of layer digests within the digestToPath function. As a result, an unauthenticated remote attacker can craft a path traversal sequence as a layer digest, allowing them to write malicious binaries outside the designated model store. If the server environment has write permissions to critical directories, such as /usr/lib/ollama (the standard for most Docker images of Ollama), an attacker could exploit this flaw to place harmful files in that directory. Upon a subsequent server restart, these malicious files could be executed, leading to remote code execution with root privileges.
The implications for organizations using this product can be severe, as the successful exploitation of this flaw allows attackers to gain unauthorized access, command, and control over the affected systems, thereby compromising the overall security and integrity of organizational resources.
Potential impact of CVE-2026-103663
-
Remote Code Execution: The most critical consequence of this vulnerability is the potential for unauthorized remote code execution as root. This can lead to full control over the affected server, allowing attackers to manipulate, disrupt, or exfiltrate sensitive data.
-
System Compromise: Exploiting CVE-2026-103663 can result in significant system compromise, where attackers leverage the vulnerability to deploy further malicious payloads, facilitate persistent access, and execute lateral movement within the network, thereby impacting multiple systems.
-
Operational Disruption: Organizations may face operational disruptions stemming from the exploitation of this vulnerability. Unauthorized file placements and subsequent server reboots could lead to service outages, negatively impacting business continuity and trust in the organization's integrity.
Affected Version(s)
Ollama 0.14.3 < 0.35.0
References
More Ollama vulnerabilities
- CVE-2026-7482: Heap Out-of-Bounds Read Vulnerability in Ollama by Ollama(HIGH)
- CVE-2024-37032: Ollama vulnerability affects model path validation(HIGH)
