# CVE-2026-103663: Path Traversal leading to Remote Code Execution in Ollama

- Severity: Medium 6.9 (CVSS:4.0, scored by CERT-PL) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Published: 2026-10-08T13:19:04.819Z
- Modified: 2026-11-17T11:17:24.180Z
- Weaknesses: CWE-23, CWE-913
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Ollama Ollama: from 0.14.3 before 0.35.0

## Every score

- CERT-PL: CVSS:4.0 6.9 Medium `CVSS: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-PL: CVSS:4.0 9.4 Critical `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`

## References

- <https://cert.pl/en/posts/2026/10/CVE-2026-103663/> (third-party-advisory)
- <https://ollama.com/> (product)

## Sources

- CVE List: [CVE-2026-103663](https://www.cve.org/CVERecord?id=CVE-2026-103663), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-103663](https://nvd.nist.gov/vuln/detail/CVE-2026-103663), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-103663 · Whole record: https://cve.day/CVE-2026-103663.json · Rebuilt by cve.day 2026-11-25T22:59:43.161Z
