CVE-2026-5843: Docker Model Runner - Remote Code Execution
- Cve: CVE-2026-5843
- Name: Docker Model Runner - Remote Code Execution
- 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.
- Impact: Any container on the Docker network can execute arbitrary code on the Docker host, leading to full host compromise.
- Remediation: Update to the latest version with proper code execution restrictions and sandboxing.
- Vulnerability type: remote_code_execution
- Vulnerability impact: remote_code_execution
- Requirements: Attacker needs network access to Docker API and ability to pull malicious model
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.6
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Epss score: 0.00224
- Epss percentile: 0.13103
- Assignee: [email protected]
- Published at: 2026-05-22T20:16:35Z
- Age in days: 186
- Modified at: 2026-07-23T11:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-5843
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/davidrxchester/CVE-2026-5843 | poc-in-github | 2026-05-20 |
References
| Url | Source | Tags |
|---|---|---|
| https://docs.docker.com/desktop/release-notes/#4710 | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| docker:docker_desktop | >= 4.56.0, < 4.71.0 | yes | nvd | /v1/products/docker/docker_desktop |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-05-20
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts