CVE-2026-5843: The MLX inference backend in Docker Model Runner on macOS uses the MLX-LM library, which unconditionally impor
CVE-2026-5843 is a high-severity flaw (CVSS 8.2) affecting docker desktop. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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, r
Why this priority
- High severity
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.2 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | Required |
| EPSS exploit chance | 0.2% (top 87%) |
| CISA exploited list | No |
| Weakness | CWE-829 |
| Published | 2026-05-22 |
| Last modified | 2026-07-23 |
Last updated 2026-07-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-5843?
docker desktop: upgrade to 4.71.0. Exact commands for each OS are on this page.
Is CVE-2026-5843 being exploited?
CVE-2026-5843 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-5843 affect?
CVE-2026-5843 affects docker desktop. Severity is high (CVSS 8.2). 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'
How urgent is CVE-2026-5843?
Priority 37/100. High severity; On your watchlist
Software pages
Python vulnerabilities · Docker vulnerabilities · macOS vulnerabilities
Related CVEs
- CVE-2026-6406 HIGH 8.8 UPGRADE The Docker CLI --use-api-socket flag bypasses Enhanced Container Isolation (ECI) restrictions in Docker Deskto
- CVE-2026-5817 HIGH 8.2 UPGRADE The vllm-metal inference backend in Docker Model Runner on macOS unconditionally sets trust_remote_code=True w