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.
References
| Link | Resource |
|---|---|
| https://docs.docker.com/desktop/release-notes/#4590 | Release Notes |
| https://www.zerodayinitiative.com/advisories/ZDI-26-299/ | Third Party Advisory |
Configurations
Configuration 1 (hide)
| AND |
|
History
23 Jul 2026, 16:10
| Type | Values Removed | Values Added |
|---|---|---|
| Summary |
|
29 May 2026, 19:02
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Linux linux Kernel
Docker Linux Apple Docker docker Desktop Microsoft windows Microsoft Apple macos |
|
| References | () https://docs.docker.com/desktop/release-notes/#4590 - Release Notes | |
| References | () https://www.zerodayinitiative.com/advisories/ZDI-26-299/ - Third Party Advisory | |
| CPE | cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* cpe:2.3:a:docker:docker_desktop:*:*:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* |
22 May 2026, 20:31
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-05-22 19:17
Updated : 2026-07-23 16:10
NVD link : CVE-2026-6406
Mitre link : CVE-2026-6406
CVE.ORG link : CVE-2026-6406
JSON object : View
Products Affected
linux
- linux_kernel
apple
- macos
docker
- docker_desktop
microsoft
- windows
CWE
CWE-863
Incorrect Authorization
