{"id":"CVE-2026-5817","aliases":["CVE-2026-5817"],"related":[],"kind":"vulnerability","state":"published","title":"Docker Model Runner container-to-host code execution via unsandboxed trust_remote_code in Python inference backends","summary":"The vllm-metal inference backend in Docker Model Runner on macOS unconditionally sets trust_remote_code=True when loading model tokenizers, and runs without sandboxing. This causes transformers.AutoTokenizer.from_pretrained() to import and execute arbitrary Python files included in any model pulled from an OCI registry, resulting in arbitrary code execution on the Docker host as the Docker Desktop user when inference is triggered.\n\nAny container on the Docker network can trigger this by calling the model-runner.docker.internal API to pull a malicious model and request inference.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The vllm-metal inference backend in Docker Model Runner on macOS unconditionally sets trust_remote_code=True when loading model tokenizers, and runs without sandboxing. This causes transformers.AutoTokenizer.from_pretrained() to import and execute arbitrary Python files included in any model pulled from an OCI registry, resulting in arbitrary code execution on the Docker host as the Docker Desktop user when inference is triggered.\n\nAny container on the Docker network can trigger this by calling the model-runner.docker.internal API to pull a malicious model and request inference.","source":"cvelist"},{"lang":"es","text":"El backend de inferencia vllm-metal en Docker Model Runner en macOS establece incondicionalmente trust_remote_code=True al cargar tokenizadores de modelos, y se ejecuta sin sandboxing. Esto provoca que transformers.AutoTokenizer.from_pretrained() importe y ejecute archivos Python arbitrarios incluidos en cualquier modelo extraído de un registro OCI, lo que resulta en ejecución de código arbitrario en el host de Docker como el usuario de Docker Desktop cuando se activa la inferencia.\n\nCualquier contenedor en la red de Docker puede activar esto llamando a la API model-runner.docker.internal para extraer un modelo malicioso y solicitar inferencia.","source":"nvd"}],"published":"2026-05-22T19:24:15.662Z","modified":"2026-07-23T11:10:00.120Z","severity":{"scorer":"Docker","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Docker","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","score":8.8,"rating":"HIGH"},{"scorer":"Docker","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.6,"rating":"HIGH"}],"cwes":["CWE-829"],"affected":[{"ranges":[{"type":"semver","introduced":"4.62.0","fixed":"4.68.0","status":"affected"}],"vendor":"Docker","product":"Docker Desktop","platforms":["MacOS"],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.62.0","fixed":"4.68.0"}],"vendor":"docker","product":"docker_desktop","cpe":"cpe:2.3:a:docker:docker_desktop:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://docs.docker.com/desktop/release-notes/#4680","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":["David Rochester (@davidrxchester)","Nicholas Gould (@gouldnicholas)"],"assigner":"Docker","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-26T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5817","url":"https://www.cve.org/CVERecord?id=CVE-2026-5817","licence":"CVE Terms of Use","modified":"2026-05-27T03:55:37.087Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5817","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5817","licence":"Public domain","modified":"2026-07-23T11:10:00.120Z"}],"updatedAt":"2026-11-25T22:59:22.207Z","epss":{"score":0.00224,"percentile":0.13969,"date":"2026-12-01T12:00:22.000Z"}}