Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-5843: CWE-829: Inclusion of Functionality from Untrusted Control Sphere in Docker Docker Desktop

0
High
VulnerabilityCVE-2026-5843cvecve-2026-5843cwe-829
Published: Fri May 22 2026 (05/22/2026, 19:28:38 UTC)
Source: CVE Database V5
Vendor/Project: Docker
Product: 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

AILast updated: 05/22/2026, 20:14:43 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses