{"id":"CVE-2026-103663","url":"https://www.cyber-defence.io/tools/cve/CVE-2026-103663","generatedAt":"2026-10-23T21:17:32.902Z","title":"Ollama is vulnerable to path traversal in the `/api/pull` endpoint due to insufficient validation of layer digests by the `digestToPath` function.","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. \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.","published":"2026-10-08T14:16:46.000Z","lastModified":"2026-10-08T20:08:46.000Z","status":"Awaiting Analysis","sourceIdentifier":"cvd@cert.pl","cvss":{"version":"4.0","score":9.4,"severity":"CRITICAL","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/M"},"cwe":["CWE-23","CWE-913"],"affected":[],"epss":{"score":0.00714,"percentile":0.53157,"date":"2026-10-22","history":[{"date":"2026-10-09","score":0.00714,"percentile":0.52301}]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (0.71%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[{"kind":"new","label":"New CVE","at":"2026-10-08T14:16:46.000Z","detail":{"score":"9.4","severity":"CRITICAL","publishedAt":"2026-10-08T14:16:46.187Z"},"summary":"New CVE, critical severity (CVSS 9.4)."}],"references":[{"url":"https://cert.pl/en/posts/2026/10/CVE-2026-103663/","source":"cvd@cert.pl"},{"url":"https://ollama.com/","source":"cvd@cert.pl"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-103663","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}