CVE-2026-5817 Details
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.
A vulnerability exists in the vllm-metal inference backend of Docker Model Runner on macOS. The issue arises because the backend automatically sets trust_remote_code=True when loading model tokenizers, without any sandboxing. This behavior allows transformers.AutoTokenizer.from_pretrained() to execute arbitrary Python files from models retrieved from an OCI registry. Consequently, this leads to arbitrary code execution on the Docker host, executed as the Docker Desktop user, whenever inference is performed. The vulnerability can be exploited by any container on the Docker network that calls the model-runner.docker.internal API to fetch a malicious model and request inference.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://docs.docker.com/desktop/release-notes/#4680 | [email protected] | Release Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| docker docker desktop | >= 4.62.0, < 4.68.0 |
CPE
Remediation
| |
| apple macos | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 1, 2026 | Initial Analysis | [email protected] |
| May 22, 2026 | New CVE Received | [email protected] |