{"id":"CVE-2026-103663","aliases":["WID-SEC-W-2026-3821"],"summary":"Path Traversal leading to Remote Code Execution in Ollama","published_at":"2026-10-08T13:19:04.819Z","modified_at":"2026-11-17T11:08:09.888Z","products":[],"rating":{"severity":"critical","score":9.4,"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","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"BSI","rating":"hoch"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.007139999885112047,"percentile":0.5446400046348572,"date":"2026-11-19T00:00:00Z"},"priority":10.9,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"Ollama/Ollama","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.14.3"},{"fixed":"0.35.0"}]}],"fixed":["0.35.0"],"provider":"cvelistv5","source":"CVE-2026-103663","relation":"self"}],"product_status":[{"vendor":"BSI","product":"Ollama Ollama <0.35.0","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2026-3821"},{"vendor":"BSI","product":"Ollama Ollama >=0.34.2","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2026-3821"},{"vendor":"Red Hat","product":"Migration Toolkit for Applications 8","cpe":"cpe:/a:redhat:migration_toolkit_applications:8","status":"not_affected","packages":["mta/mta-solution-server-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-103663"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"not_affected","packages":["ansible-automation-platform-24/lightspeed-rhel8","ansible-automation-platform-25/lightspeed-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-103663"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-103663"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-103663","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-103663","license":"CC-BY-4.0","published_at":"2026-10-08T13:19:04.819Z","modified_at":"2026-11-17T11:08:09.888Z","summary":"Path Traversal leading to Remote Code Execution in Ollama","details":"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.","severity":[{"type":"CVSS_V4","score":"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","source":"CVE-2026-103663"},{"type":"CVSS_V4","score":"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","source":"CVE-2026-103663"}],"affected":[{"ecosystem":"CVE","package":"Ollama/Ollama","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.14.3"},{"fixed":"0.35.0"}]}],"fixed":["0.35.0"],"provider":"cvelistv5","source":"CVE-2026-103663","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://cert.pl/en/posts/2026/10/CVE-2026-103663/"},{"type":"WEB","url":"https://ollama.com/"}]},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-3821","relation":"self","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3821","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-10-08T22:00:00Z","modified_at":"2026-10-08T22:00:00Z","summary":"Ollama: Schwachstelle ermöglicht Codeausführung","details":"Ein entfernter, anonymer Angreifer kann eine Schwachstelle in Ollama ausnutzen, um beliebigen Programmcode mit root Rechten auszuführen.\n\nOllama ist eine Open-Source-Runtime zum lokalen Ausführen von Large Language Models (LLMs)","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2026-3821"}],"affected":[],"product_status":[{"vendor":"BSI","product":"Ollama Ollama <0.35.0","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2026-3821"},{"vendor":"BSI","product":"Ollama Ollama >=0.34.2","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2026-3821"}],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3821.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3821"},{"type":"WEB","url":"https://cert.pl/en/posts/2026/10/CVE-2026-103663/"},{"type":"WEB","url":"https://euvd.enisa.europa.eu/enisa/EUVD-2026-94962"},{"type":"WEB","url":"https://github.com/advisories/GHSA-W8P2-PHWR-PX3R"}]},{"provider":"redhat-vex","source_id":"CVE-2026-103663","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-103663","license":"CC-BY-4.0","published_at":"2026-10-08T13:19:04.819Z","modified_at":"2026-10-30T12:19:08Z","summary":"Ollama: Path Traversal leading to Remote Code Execution in Ollama","details":"A flaw was found in Ollama. This vulnerability allows an unauthenticated remote attacker to achieve arbitrary code execution by exploiting a path traversal flaw in the model pull application programming interface (API) endpoint. By supplying a crafted layer identifier, an attacker can write malicious files outside the intended storage location. If these files are written to executable application directories, the server loads and executes them upon restart, compromising the host system.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2026-103663"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-103663"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Migration Toolkit for Applications 8","cpe":"cpe:/a:redhat:migration_toolkit_applications:8","status":"not_affected","packages":["mta/mta-solution-server-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-103663"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"not_affected","packages":["ansible-automation-platform-24/lightspeed-rhel8","ansible-automation-platform-25/lightspeed-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-103663"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-103663"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-103663.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-103663"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2547956"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-103663"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-103663"},{"type":"WEB","url":"https://cert.pl/en/posts/2026/10/CVE-2026-103663/"},{"type":"WEB","url":"https://ollama.com/"}]}],"references":[{"type":"WEB","url":"https://cert.pl/en/posts/2026/10/CVE-2026-103663/"},{"type":"WEB","url":"https://ollama.com/"},{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3821.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3821"},{"type":"WEB","url":"https://euvd.enisa.europa.eu/enisa/EUVD-2026-94962"},{"type":"WEB","url":"https://github.com/advisories/GHSA-W8P2-PHWR-PX3R"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-103663.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-103663"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2547956"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-103663"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-103663"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-103663","url":"https://www.cve.org/CVERecord?id=CVE-2026-103663","license":"CC-BY-4.0","modified_at":"2026-11-17T11:08:09.888Z","relation":"self"},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-3821","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3821","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-10-08T22:00:00Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-103663","url":"https://access.redhat.com/security/cve/CVE-2026-103663","license":"CC-BY-4.0","modified_at":"2026-10-30T12:19:08Z","relation":"self"}]}
