{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-103663", "assignerOrgId": "4bb8329e-dd38-46c1-aafb-9bf32bcb93c6", "state": "PUBLISHED", "assignerShortName": "CERT-PL", "dateReserved": "2026-10-01T08:54:20.991Z", "datePublished": "2026-10-08T13:19:04.819Z", "dateUpdated": "2026-10-08T14:04:14.270Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "4bb8329e-dd38-46c1-aafb-9bf32bcb93c6", "shortName": "CERT-PL", "dateUpdated": "2026-10-08T13:19:04.819Z" }, "title": "Path Traversal leading to Remote Code Execution in Ollama", "problemTypes": [ { "descriptions": [ { "lang": "en", "cweId": "CWE-23", "description": "CWE-23 Relative Path Traversal", "type": "CWE" } ] }, { "descriptions": [ { "lang": "en", "cweId": "CWE-913", "description": "CWE-913 Improper Control of Dynamically-Managed Code Resources", "type": "CWE" } ] } ], "impacts": [ { "capecId": "CAPEC-139", "descriptions": [ { "lang": "en", "value": "CAPEC-139 Relative Path Traversal" } ] } ], "affected": [ { "vendor": "Ollama", "product": "Ollama", "repo": "https://github.com/ollama/ollama", "versions": [ { "status": "affected", "version": "0.34.2", "lessThan": "0.35.0", "versionType": "semver" } ], "defaultStatus": "unknown" } ], "descriptions": [ { "lang": "en", "value": "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.", "supportingMedia": [ { "type": "text/html", "base64": false, "value": "