# CVE-2026-5817: Docker Model Runner container-to-host code execution via unsandboxed trust_remote_code in Python inference backends

- Severity: High 8.8 (CVSS:4.0, scored by Docker) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-05-22T19:24:15.662Z
- Modified: 2026-07-23T11:10:00.120Z
- Weaknesses: CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Docker

## Description

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.

Any container on the Docker network can trigger this by calling the model-runner.docker.internal API to pull a malicious model and request inference.

(As written by CVE List.)

## Affected

- Docker Docker Desktop: from 4.62.0 before 4.68.0
- docker docker_desktop: from 4.62.0 before 4.68.0

## Every score

- Docker: CVSS:4.0 8.8 High `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`
- Docker: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://docs.docker.com/desktop/release-notes/#4680> (release-notes)

## Sources

- CVE List: [CVE-2026-5817](https://www.cve.org/CVERecord?id=CVE-2026-5817), CVE Terms of Use, modified 2026-05-27
- NVD: [CVE-2026-5817](https://nvd.nist.gov/vuln/detail/CVE-2026-5817), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-5817 · Whole record: https://cve.day/CVE-2026-5817.json · Rebuilt by cve.day 2026-11-25T22:59:22.207Z
