{"id":"CVE-2026-103663","title":"Ollama is vulnerable to path traversal in the `/api/pull` endpoint due to insufficient validation of layer digests by the `digestToPath` function","summary":"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…","severity":"medium","cvss":6.9,"cvssVector":"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","cwe":["CWE-23","CWE-913"],"vendor":"Ollama","product":"Ollama","affected":["Ollama >= 0.34.2 < 0.35.0"],"published":"2026-10-08","updated":"2026-10-08","sourceUpdated":"2026-10-08T15:17:31.870","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-103663","references":[{"url":"https://cert.pl/en/posts/2026/10/CVE-2026-103663/","label":"cvd@cert.pl"},{"url":"https://ollama.com/","label":"cvd@cert.pl"}],"tags":["nvd","cve.org"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-08T14:04:06.230233Z"},"cvssSource":"cna","ingestedAt":"2026-10-08T13:42:55.153Z","slug":"CVE-2026-103663","body":"## Overview\n\nOllama 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. \n\nCritically 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.\n\n\nThis issue was fixed in version 0.35.0.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":38,"depthScoreParts":{"impact":38,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}