| Component | Ollama |
| Severity | critical (CVSS 9.4) |
| CVSS vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| Published (NVD) | 2026-10-08 |
| Last modified | 2026-11-17 |
| Affected versions | >= 0.14.3, < 0.35.0 from the CVE Program record written by the CNA that assigned the CVE the CVE record leaves the releases before 0.14.3 undecided: the scanner asks you to check them |
| Fixed in | 0.35.0 |
| Weakness | CWE-23CWE-913 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's record (status: Awaiting Analysis) lists no affected versions of Ollama for this CVE. The ranges above come from the CVE record written by CERT-PL, the CNA that assigned the CVE.
NVD 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.
What to do
- Upgrade Ollama to
0.35.0or later. - Do not expose the component's API or UI to the internet without authentication in front of it.
- Run Ollama bound to localhost and reach it over a private network rather than an open port. Ollama on a Raspberry Pi 5 · Ollama on a Mac mini M4 · Tailscale for self-hosted AI · Which machine for a 7B model next to an agent · Agent plus local model, the exact setup, €12