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…
EPSS 0.2%top 87%

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: 05/22/2026 (05/22/2026, 19:28:38 UTC)
Source: CVE Database V5
Vendor/Project: Docker
Product: Docker Desktop

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.

CVSS v4.0

Score 8.8high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Affected software

GitHub Actionsmore threats →ai
docker/desktop
pkg:github/docker/desktop
Affected versions
=4.56.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/29/2026, 20:27:09 UTC

Technical Analysis

The MLX inference backend in Docker Model Runner on macOS uses the MLX-LM library that unconditionally imports and executes Python files from model directories as specified by the model_file field in config.json. There is no trust_remote_code gate or equivalent safety mechanism, and the MLX backend runs without sandboxing. Consequently, any container on the Docker network can exploit this by calling the model-runner.docker.internal API to pull a malicious model from an attacker-controlled OCI registry and execute arbitrary code on the Docker host with the privileges of the Docker Desktop user.

Potential Impact

Successful exploitation results in arbitrary code execution on the Docker host with the privileges of the Docker Desktop user. This can lead to full compromise of the host environment where Docker Desktop is running. The vulnerability requires local network access to the Docker network and the ability to interact with the model-runner.docker.internal API. There are no known exploits in the wild as of the published date.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is currently documented. Until a patch is available, restrict access to the Docker network and the model-runner.docker.internal API to trusted users and containers only. Monitor vendor communications for updates on remediation.

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: 05/22/2026, 19:59:48 UTC

Last enriched: 05/29/2026, 20:27:09 UTC

Last updated: 07/31/2026, 19:22:59 UTC

Views: 113

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