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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-22 · Modified: 2026-05-27
- Record: https://cvemate.com/vulnerability/CVE-2026-5843 · JSON: https://cvemate.com/vulnerability/CVE-2026-5843/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v4.0, CVE.org) 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
- EPSS: 0.224%, percentile 13.939%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- docker docker desktop: ≥ 4.56.0, \< 4.71.0

## References

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

---

Data as of 2026-12-05T05:10:32.840Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
