Docker Desktop Enhanced Container Isolation bypass via --use-api-socket CLI flag
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-863.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Docker | Docker Desktop | 4.41.0 to before 4.59.0 | 4.59.0 | Patch available | CNA |
- Docker Desktop VendorDocker Affected 4.41.0 to before 4.59.0 Fixed in 4.59.0 Patch available CNA
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:docker:docker_desktop:*:*:*:*:*:*:*:* | 4.41.0 to before 4.59.0 | Vulnerable | Docker |
| cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Apple |
| cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Linux |
| cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Microsoft |
- cpe:2.3:a:docker:docker_desktop:*:*:*:*:*:*:*:* Versions 4.41.0 to before 4.59.0 Vulnerable ·Docker
- cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Apple
- cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Linux
- cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Microsoft
Remediation
- Fix · CNA Docker Desktop (Docker) Fixed in 4.59.0
Timeline
- 2026-10-02 Threatist record created from CVE-2026-6406
- 2026-10-03 Alias added: GHSA-3f9v-226v-2qc9
References
More Docker Desktop vulnerabilities
- TI-2023-00593 Code injection in Docker Desktop CVSS 3.1CRITICAL 9.8
- TI-2023-00592 Cross-site scripting in Docker Desktop CVSS 3.1CRITICAL 9.8
- TI-2023-04753 Docker Desktop before 4.23.0 allows Enhanced Container Isolation bypass via debug shell CVSS 3.1HIGH 8.8
- TI-2026-05122 Docker Model Runner container-to-host code execution via MLX-LM model_file importlib loading CVSS 4.0HIGH 8.8
- TI-2026-05098 Docker Model Runner container-to-host code execution via unsandboxed trust_remote_code in Python inference backends CVSS 4.0HIGH 8.8
- TI-2023-04754 Information disclosure in Docker Desktop CVSS 3.1HIGH 8.0
Sources
- CVE-2026-6406 · CVE Program
- CVE-2026-6406 · NVD
- FIRST EPSS
- GHSA-3f9v-226v-2qc9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences