CVE-2026-5843: CWE-829: Inclusion of Functionality from Untrusted Control Sphere in Docker Docker Desktop
CVE-2026-5843 is a high-severity vulnerability in Docker Desktop version 4. 56. 0 on macOS involving the MLX inference backend. The MLX-LM library unconditionally imports and executes arbitrary Python files specified by the model_file field in a model's config. json without any safety checks or sandboxing. This allows any container on the Docker network to trigger arbitrary code execution on the Docker host by pulling a malicious model from an attacker-controlled OCI registry and requesting inference via the model-runner. docker. internal API.
AI Analysis
Technical Summary
The vulnerability arises because the MLX inference backend in Docker Model Runner on macOS uses the MLX-LM library, which loads and executes Python files from model directories as specified by the model_file configuration in config.json without verifying trust or sandboxing. This lack of validation enables an attacker controlling a container on the Docker network to cause the backend to execute arbitrary Python code on the host system with the privileges of the Docker Desktop user. The attack vector involves pulling a malicious model from an attacker-controlled OCI registry and invoking inference through the model-runner.docker.internal API. The CVSS 4.0 base score is 8.8, reflecting high impact and exploitability with local attack vector but requiring some privileges.
Potential Impact
Successful exploitation results in arbitrary code execution on the Docker host with the privileges of the Docker Desktop user, potentially leading to full compromise of the host environment. The vulnerability affects Docker Desktop 4.56.0 on macOS and allows an attacker with access to any container on the Docker network to execute malicious Python code by supplying a crafted model. This can lead to unauthorized control over the host system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround has been published at this time. Until a patch is available, restrict access to the Docker network and the model-runner.docker.internal API to trusted containers only, and avoid pulling models from untrusted OCI registries.
CVE-2026-5843: CWE-829: Inclusion of Functionality from Untrusted Control Sphere in Docker Docker Desktop
Description
CVE-2026-5843 is a high-severity vulnerability in Docker Desktop version 4. 56. 0 on macOS involving the MLX inference backend. The MLX-LM library unconditionally imports and executes arbitrary Python files specified by the model_file field in a model's config. json without any safety checks or sandboxing. This allows any container on the Docker network to trigger arbitrary code execution on the Docker host by pulling a malicious model from an attacker-controlled OCI registry and requesting inference via the model-runner. docker. internal API.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the MLX inference backend in Docker Model Runner on macOS uses the MLX-LM library, which loads and executes Python files from model directories as specified by the model_file configuration in config.json without verifying trust or sandboxing. This lack of validation enables an attacker controlling a container on the Docker network to cause the backend to execute arbitrary Python code on the host system with the privileges of the Docker Desktop user. The attack vector involves pulling a malicious model from an attacker-controlled OCI registry and invoking inference through the model-runner.docker.internal API. The CVSS 4.0 base score is 8.8, reflecting high impact and exploitability with local attack vector but requiring some privileges.
Potential Impact
Successful exploitation results in arbitrary code execution on the Docker host with the privileges of the Docker Desktop user, potentially leading to full compromise of the host environment. The vulnerability affects Docker Desktop 4.56.0 on macOS and allows an attacker with access to any container on the Docker network to execute malicious Python code by supplying a crafted model. This can lead to unauthorized control over the host system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround has been published at this time. Until a patch is available, restrict access to the Docker network and the model-runner.docker.internal API to trusted containers only, and avoid pulling models from untrusted OCI registries.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Docker
- Date Reserved
- 2026-04-08T17:43:50.508Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a10b5b4e1370fbb4848af5b
Added to database: 5/22/2026, 7:59:48 PM
Last enriched: 5/22/2026, 8:14:43 PM
Last updated: 5/22/2026, 9:09:46 PM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.