Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
Docker Docker Desktop
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Docker Model Runner是Docker开源的一个Docker模型运行器。 Docker Model Runner MLX存在安全漏洞,该漏洞源于无条件导入并执行模型目录中的任意Python文件,可能导致从攻击者控制的OCI注册表拉取恶意模型并请求推理时,在Docker主机上执行任意代码。

CVSS 8.2 · High EPSS 0.22% · P13

Affected Version Matrix 1

VendorProduct Version RangeStatus
Docker Docker Desktop 4.56.0< 4.71.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-5843

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Docker Model Runner container-to-host code execution via MLX-LM model_file importlib loading
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
从非可信控制范围包含功能例程
Source: CVE Program / CVE List V5
Vulnerability Title
Docker Model Runner 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Docker Model Runner是Docker开源的一个Docker模型运行器。 Docker Model Runner MLX存在安全漏洞,该漏洞源于无条件导入并执行模型目录中的任意Python文件,可能导致从攻击者控制的OCI注册表拉取恶意模型并请求推理时,在Docker主机上执行任意代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Docker Docker Desktop 4.56.0 ~ 4.71.0 -

II. Public POCs for CVE-2026-5843

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-5843

登录查看更多情报信息。

Same Patch Batch · Docker · 2026-05-22 · 3 CVEs total

CVE-2026-6406 8.8 HIGH Docker Desktop Enhanced Container Isolation bypass via --use-api-socket CLI flag
CVE-2026-5817 8.2 HIGH Docker Model Runner container-to-host code execution via unsandboxed trust_remote_code in

IV. Related Vulnerabilities

V. Comments for CVE-2026-5843

No comments yet


Leave a comment