CVE-2026-6406: Docker Desktop Enhanced Container Isolation Exposed Dangerous Function Local Privilege Escalation Vulnerability

Published Apr 23, 2026
·
Updated

The Docker CLI --use-api-socket flag bypasses Enhanced Container Isolation (ECI) restrictions in Docker Desktop. When ECI is enabled, Docker socket mounts from containers are denied unless explicitly allowed via the admin-settings configuration. However, the --use-api-socket flag adds the Docker socket mount via the HostConfig.Mounts field rather than the HostConfig.Binds field. The ECI enforcement in the Docker Desktop API proxy only inspected Binds, allowing the mount to pass unchecked. This grants a container full access to the Docker Engine socket and, if the host user has logged in to container registries, their authentication credentials.

A local attacker with the ability to run Docker CLI commands can exploit this to escape ECI restrictions, access the Docker Engine, and potentially escalate privileges.

Other sources

This vulnerability allows local attackers to escalate privileges on affected installations of Docker Desktop. An attacker must first obtain the ability to execute low-privileged code within a container in order to exploit this vulnerability. The specific flaw exists within the processing of Docker CLI arguments. The issue results from an exposed dangerous function. An attacker can leverage this vulnerability to escalate privileges to resources normally protected by Enhanced Container Isolation.

ZDI

Affected Software

5 affected components
Docker Docker Desktop
All of the following
Docker Docker Desktop>=4.41.0<4.59.0
Any of the following
Apple macOS
Linux Linux kernel
Microsoft Windows

Event History

Apr 23, 2026
Advisory Published
via ZDI·12:00 AM
Data Sourced
via ZDI·12:00 AM
DescriptionSeverityAffected Software
May 22, 2026
CVE Published
via MITRE·06:32 PM
Data Sourced
via MITRE·06:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-6406?

CVE-2026-6406 has a high severity score of 8.8.

2

How do I fix CVE-2026-6406?

To mitigate CVE-2026-6406, avoid using the --use-api-socket flag or review the admin-settings configuration for Docker Desktop.

3

What type of vulnerability is CVE-2026-6406?

CVE-2026-6406 is a local privilege escalation vulnerability affecting Docker Desktop.

4

What does the --use-api-socket flag do in relation to CVE-2026-6406?

The --use-api-socket flag allows Docker socket mounts from containers, bypassing Enhanced Container Isolation (ECI) restrictions.

5

What is affected by CVE-2026-6406?

CVE-2026-6406 affects Docker Desktop when Enhanced Container Isolation is enabled.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203