A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5843

CVE-2026-5843: Docker Model Runner MLX RCE Vulnerability

CVE-2026-5843 is a remote code execution flaw in Docker Model Runner's MLX inference backend that allows arbitrary Python code execution on macOS hosts. This post covers technical details, affected systems, and mitigation.

Published: May 28, 2026

CVE-2026-5843 Overview

CVE-2026-5843 is an arbitrary code execution vulnerability in the MLX inference backend of Docker Model Runner on macOS. The backend relies on the MLX-LM library, which unconditionally imports and executes Python files referenced by the model_file field in a model's config.json. No trust_remote_code gate or equivalent safety check exists. The MLX backend runs without sandboxing, so attacker-supplied code executes on the Docker host as the Docker Desktop user. Any container on the Docker network can trigger the flaw by calling the model-runner.docker.internal API to pull a malicious model from an attacker-controlled OCI registry and request inference. The weakness is tracked under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.

Critical Impact

A malicious model pulled through Docker Model Runner achieves arbitrary code execution on the macOS Docker host, fully compromising the Docker Desktop user context.

Affected Products

  • Docker Desktop on macOS with Docker Model Runner enabled (versions prior to 4.71.0)
  • MLX inference backend in Docker Model Runner
  • MLX-LM library integration shipped with Docker Model Runner

Discovery Timeline

  • 2026-05-22 - CVE-2026-5843 published to NVD
  • 2026-05-22 - Last updated in NVD database

Technical Details for CVE-2026-5843

Vulnerability Analysis

Docker Model Runner exposes an inference API at model-runner.docker.internal reachable from any container on the Docker network. On macOS, the MLX backend loads models using the MLX-LM library. MLX-LM reads config.json from the model directory and resolves the model_file field to a Python module path. The library then calls importlib to load that module, which causes Python to execute any top-level code in the referenced file.

Because MLX-LM lacks a trust_remote_code opt-in flag and Docker Model Runner does not validate model contents, an attacker can publish a malicious model to any OCI registry. When that model is pulled and an inference request is issued, the attacker's Python code runs in the MLX backend process. The MLX backend runs unsandboxed on the host, so code executes with the privileges of the Docker Desktop user. Attackers can read user files, write to the user's home directory, harvest credentials, and pivot to other developer assets.

Root Cause

The root cause is unsafe inclusion of functionality from an untrusted control sphere [CWE-829]. MLX-LM treats model directory contents as trusted code and uses importlib to load arbitrary Python files declared in config.json. Docker Model Runner inherits this behavior without imposing sandboxing, signature verification, or a remote-code-execution consent gate.

Attack Vector

The attack is local to the Docker host but trivially reachable from any container sharing the Docker network. An attacker stages a malicious model on an OCI registry whose config.json sets model_file to a Python file containing malicious payloads. The attacker calls the Model Runner API to pull the model and issues an inference request. MLX-LM imports the Python file, executing the payload as the Docker Desktop user. No user interaction is required beyond running a hostile container or building from a hostile image.

No verified public exploit code is available. See the Docker Release Notes for 4.71.0 for vendor remediation details.

Detection Methods for CVE-2026-5843

Indicators of Compromise

  • Unexpected outbound pulls from Docker Model Runner to unfamiliar OCI registries or repositories.
  • config.json files in model directories that reference .py files via the model_file field.
  • Child processes spawned by the MLX backend that perform shell execution, network egress, or file system enumeration outside model inference paths.
  • New or modified files in the Docker Desktop user's home directory shortly after a model pull or inference request.

Detection Strategies

  • Inspect cached model directories under Docker Model Runner storage for Python files referenced by config.json.
  • Monitor API calls to model-runner.docker.internal originating from containers that should not perform inference.
  • Alert on importlib activity within the MLX backend process that loads files outside the MLX-LM package path.
  • Correlate model pull events with subsequent process, file, and network activity on the macOS host.

Monitoring Recommendations

  • Enable endpoint telemetry on macOS developer workstations to capture process lineage from Docker Desktop helper processes.
  • Log all OCI registry pulls triggered by Docker Model Runner and review for non-approved registries.
  • Track inference requests and source container identity through Docker daemon logs.

How to Mitigate CVE-2026-5843

Immediate Actions Required

  • Upgrade Docker Desktop to version 4.71.0 or later on all macOS hosts running Model Runner.
  • Disable Docker Model Runner on macOS hosts where MLX inference is not required.
  • Restrict which containers can reach model-runner.docker.internal by segmenting Docker networks.
  • Audit existing cached models for config.json entries that reference .py files and remove untrusted models.

Patch Information

Docker addressed the issue in Docker Desktop 4.71.0. Refer to the Docker Desktop 4.71.0 release notes for the official fix and upgrade guidance.

Workarounds

  • Disable the MLX backend in Docker Model Runner configuration until the host is patched.
  • Pull models only from trusted, internally controlled OCI registries and block egress to public registries from inference networks.
  • Run Docker Desktop under a least-privileged macOS user account to limit blast radius if exploitation occurs.
  • Prevent untrusted containers from joining the default Docker network shared with Model Runner.
bash
# Verify Docker Desktop version meets the patched release
docker version --format '{{.Server.Version}}'

# Disable Docker Model Runner until patched (macOS)
docker desktop disable model-runner

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDocker

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-829
  • Technical References
  • Docker Release Notes #4710
  • Related CVEs
  • CVE-2026-5817: Docker Model Runner vllm-metal RCE Flaw

  • CVE-2026-5741: Docker-MCP-Server RCE Vulnerability

  • CVE-2025-64443: Docker MCP Gateway RCE Vulnerability

  • CVE-2023-0628: Docker Desktop RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English