Back to feed
21Track

Path Traversal leading to Remote Code Execution in Ollama

Ollama · CVE-2026-103663
0 news outlets1 CERTs and agencies0 research labs

Assessment: Track

SSVC decision points: exploitation poc, automatable no, technical impact total, deployment medium.

What is it?

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.

Evidence

Official warnings1National CERTs, government cyber security agencies and the vendor’s own advisories

Exploitation

  • Public proof of concept
  • Exploited in the wild
  • Listed as known exploited
CVSS
6.9
EPSS
–
First seen
1 h ago
Status
confirmed

All Ollama vulnerabilities