CVE-2026-103663
Ollama is vulnerable to path traversal in the `/api/pull` endpoint due to insufficient validation…
- Risk score
- 82/100
- CVSS
- 9.4 v4.0
- Exploit chance (30 days)
- 0.7%
- Published
- 8 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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 …
- Affected
- See advisory
- Fix
- Upgrade the product to 0.35.0 or later.
- Exploitation
- No known exploitation
Why it is Red
- CVSS 9.4 critical
- Remotely exploitable without logging in
- On your watchlist: ollama
References
Original description
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.
Last activity 8 Oct 2026. Patch Forecast updates every hour.