Docker Model Runner container-to-host code execution via MLX-LM model_file importlib loading
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/#4710 |
|
| 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 MLX inference backend in Docker Model Runner on macOS uses the MLX-LM library, which unconditionally imports and executes arbitrary Python files from model directories via the model_file configuration field in config.json. When a model's config.json specifies a model_file pointing to a Python file, MLX-LM uses importlib to load and execute it with no trust_remote_code gate or equivalent safety check. The MLX backend runs without sandboxing, resulting in arbitrary code execution on the Docker host as the Docker Desktop user. Any container on the Docker network can trigger this by calling the model-runner.docker.internal API to pull a malicious model from an attacker-controlled OCI registry and request inference. | |
| Title | Docker Model Runner container-to-host code execution via MLX-LM model_file importlib loading | |
| Weaknesses | CWE-829 | |
| References |
| |
| Metrics |
cvssV3_1
|