Docker Model Runner container-to-host code execution via unsandboxed trust_remote_code in Python inference backends
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Docker | Docker Desktop | unaffected |
|
Configuration 1 [-]
| AND |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Docker | Docker Desktop |
|
Vendor Workaround
Disable Docker Model Runner or only run trusted containers on Docker Desktop instances where Model Runner is enabled.
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.224% probability within 30 days)
| Link | Providers |
|---|---|
| https://docs.docker.com/desktop/release-notes/#4680 |
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Apple
Apple macos |
|
| CPEs | cpe:2.3:a:docker:docker_desktop:*:*:*:*:*:*:*:* cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* |
|
| Vendors & Products |
Apple
Apple macos |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Docker
Docker docker Desktop |
|
| Vendors & Products |
Docker
Docker docker Desktop |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Docker Model Runner container-to-host code execution via unsandboxed trust_remote_code in Python inference backends | |
| Weaknesses | CWE-829 | |
| References |
| |
| Metrics |
cvssV3_1
|