# CVE-2026-6406: Docker Desktop Enhanced Container Isolation bypass via --use-api-socket CLI flag

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-863
- **Published:** 2026-05-22T18:32:15.959Z
- **Modified:** 2026-07-23T16:10:00.137Z

## Who should check

- Anyone running Docker Desktop \>= 4.41.0, \< 4.59.0

## Description

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.

## Affected and fixed versions

- Docker Desktop: \>= 4.41.0, \< 4.59.0 (cvelist)

## Mitigation

- Upgrade Docker Desktop to 4.59.0 or later.
- Vendor workaround: Upgrade to Docker Desktop 4.59.0 or later. As a workaround, restrict which users can execute Docker CLI commands on the host.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-6406. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-6406.md
Affected: Docker Desktop >= 4.41.0, < 4.59.0
Fixed in: Docker Desktop 4.59.0

Steps:
1. Search this machine and project for Docker Desktop: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-6406 being exploited?

There is no confirmed exploitation: CVE-2026-6406 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-6406?

High: CVSS 8.8 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-6406?

Docker Desktop \>= 4.41.0, \< 4.59.0.

### Is there a fix for CVE-2026-6406?

Yes. Fixed in Docker Desktop 4.59.0. Upgrade Docker Desktop to 4.59.0 or later. Vendor workaround: Upgrade to Docker Desktop 4.59.0 or later. As a workaround, restrict which users can execute Docker CLI commands on the host.

### How do I check if I'm affected by CVE-2026-6406?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://docs.docker.com/desktop/release-notes/#4590>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-26-299/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-6406>

HTML: <https://flawdb.com/CVE-2026-6406> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-6406>
