CVE-2026-6406: Docker Desktop Enhanced Container Isolation Exposed Dangerous Function Local Privilege Escalation Vulnerability
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
Event History
Frequently Asked Questions
What is the severity of CVE-2026-6406?
CVE-2026-6406 has a high severity score of 8.8.
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.
What type of vulnerability is CVE-2026-6406?
CVE-2026-6406 is a local privilege escalation vulnerability affecting Docker Desktop.
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.
What is affected by CVE-2026-6406?
CVE-2026-6406 affects Docker Desktop when Enhanced Container Isolation is enabled.