CVE-2026-103663
JSON

6.9medium

Path Traversal leading to Remote Code Execution in Ollama

Severity
6.9medium CVSS:4.0 by CERT-PL
Exploit likelihood
0.74% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CERT-PL

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.

Affected

Product or packageVersionsReported by
Ollama Ollamafrom 0.14.3 before 0.35.0CVE List

All scores

CERT-PL6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
CERT-PL9.4critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Classification

CWE-23CWE-913

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-103663 changed 2026-11-17CVE Terms of Use
NVDCVE-2026-103663 changed 2026-11-17Public domain