CVE-2026-103663 Path Traversal leading to Remote Code Execution in Ollama
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- DockerRed Hat
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ollama | >= 0.14.3, < 0.35.0 | 0.35.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ollama | >= 0.14.3, < 0.35.0 | 0.35.0 |
References
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2547956 issue-tracking
- www.cve.org
- nvd.nist.gov
- cert.pl third-party-advisory
- ollama.com product
- ENISA EUVD EUVD-2026-94962 third-party-advisory