CVE-2026-103663

published 8 Oct 2026 · updated 17 Nov 2026

Path Traversal leading to Remote Code Execution in Ollama

6.9MediumCVSS 6.9EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.35.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Ollama>=0.14.3 <0.35.00.35.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-103663 severity on Zeptric[![CVE-2026-103663](https://zeptric.io/badge/cve/CVE-2026-103663.svg)](https://zeptric.io/cve/CVE-2026-103663)