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

Published May 22, 2026
·
Updated

The vllm-metal inference backend in Docker Model Runner on macOS unconditionally sets trustremotecode=True when loading model tokenizers, and runs without sandboxing. This causes transformers.AutoTokenizer.frompretrained() 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.

Affected Software

3 affected components
Docker Docker Model Runner (vllm-metal inference backend)
All of the following
Docker Docker Desktop>=4.62.0<4.68.0
Apple macOS

Event History

May 22, 2026
CVE Published
via MITRE·07:24 PM
Data Sourced
via MITRE·07:24 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-5817?

CVE-2026-5817 has a high severity rating of 8.2.

2

How does CVE-2026-5817 impact Docker users?

CVE-2026-5817 allows for container-to-host code execution due to unsandboxed execution of remote code.

3

How do I fix CVE-2026-5817?

To mitigate CVE-2026-5817, avoid using trust_remote_code=True when loading model tokenizers in Docker Model Runner.

4

What versions of Docker are affected by CVE-2026-5817?

CVE-2026-5817 affects the Docker Model Runner using the vllm-metal inference backend.

5

What is the nature of the vulnerability in CVE-2026-5817?

The vulnerability in CVE-2026-5817 allows arbitrary Python files to be executed, leading to potential remote code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203