Arbitrary Code Execution Vulnerability in Docker Model Runner for macOS
CVE-2026-5843
Key Information:
- Vendor
Docker
- Status
- Vendor
- CVE Published:
- 22 May 2026
Badges
What is CVE-2026-5843?
The Docker Model Runner on macOS contains a serious vulnerability in the MLX inference backend, specifically due to its handling of model files. By using the MLX-LM library, the model runner can import and execute arbitrary Python files located in model directories without appropriate checks. This is particularly concerning as it allows for the execution of untrusted code from the specified model_file within config.json, leading to the potential compromise of the Docker host environment. Any Docker container can exploit this vulnerability by making requests to the model-runner.docker.internal API to execute models from unsecure sources.
Affected Version(s)
Docker Desktop MacOS 4.56.0 < 4.71.0
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
Vulnerability published
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability Reserved
