PT-2026-42831 · Pypi+1 · Mlx-Lm+1

David Rochester

+1

·

Published

2026-05-22

·

Updated

2026-05-23

·

CVE-2026-5843

CVSS v3.1

8.2

High

VectorAV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Docker Model Runner on macOS (affected versions not specified)
Description The MLX inference backend uses the MLX-LM library, which imports and executes arbitrary Python files from model directories via the model file configuration field in the config.json file. This occurs because MLX-LM utilizes importlib to load and execute the file without a safety check or trust gate. Since the MLX backend operates without sandboxing, this leads to arbitrary code execution on the Docker host as the Docker Desktop user. An attacker can trigger this by calling the 'model-runner.docker.internal' API to pull a malicious model from a controlled OCI registry and requesting inference.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-5843

Affected Products

Docker Model Runner
Mlx-Lm