# CVE-2026-5843: Docker Model Runner container-to-host code execution via MLX-LM model_file importlib loading

- Severity: High 8.8 (CVSS:4.0, scored by Docker) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-05-22T19:28:38.857Z
- Modified: 2026-07-23T11:10:00.120Z
- Weaknesses: CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Docker

## 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.

(As written by CVE List.)

## Affected

- Docker Docker Desktop: from 4.56.0 before 4.71.0
- docker docker_desktop: from 4.56.0 before 4.71.0

## Every score

- Docker: CVSS:4.0 8.8 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`
- Docker: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://docs.docker.com/desktop/release-notes/#4710> (release-notes)

## Sources

- CVE List: [CVE-2026-5843](https://www.cve.org/CVERecord?id=CVE-2026-5843), CVE Terms of Use, modified 2026-05-27
- NVD: [CVE-2026-5843](https://nvd.nist.gov/vuln/detail/CVE-2026-5843), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-5843 · Whole record: https://cve.day/CVE-2026-5843.json · Rebuilt by cve.day 2026-11-25T22:59:22.208Z
