๐Ÿ” CVE Alert

CVE-2026-5843

HIGH 8.2

Docker Model Runner container-to-host code execution via MLX-LM model_file importlib loading

CVSS Score
8.2
EPSS Score
0.0%
EPSS Percentile
3th

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.

CWE CWE-829
Vendor docker
Product docker desktop
Ecosystems
Industries
Technology
Published May 22, 2026
Last Updated May 27, 2026
Stay Ahead of the Next One

Get instant alerts for docker docker desktop

Be the first to know when new high vulnerabilities affecting docker docker desktop are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

Docker / Docker Desktop
4.56.0 < 4.71.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
docs.docker.com: https://docs.docker.com/desktop/release-notes/#4710

Credits

David Rochester (@davidrxchester) Nicholas Gould (@gouldnicholas)