{"id":"CVE-2026-6406","state":"PUBLISHED","title":"Docker Desktop Enhanced Container Isolation bypass via --use-api-socket CLI flag","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.\n\nA 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.","publishedAt":"2026-05-22T18:32:15.959Z","updatedAt":"2026-05-23T03:56:00.655Z","severity":{"score":8.8,"label":"High","version":"4.0","vector":"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","source":"Docker"},"assigner":"Docker","products":["Docker Docker Desktop"],"affected":[{"vendor":"Docker","product":"Docker Desktop","defaultStatus":"unaffected","versions":[{"version":"4.41.0","status":"affected","lessThan":"4.59.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"]}],"references":["https://docs.docker.com/desktop/release-notes/#4590","https://www.zerodayinitiative.com/advisories/ZDI-26-299/"],"weaknesses":["CWE-863"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/6xxx/CVE-2026-6406.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-6406","state":"PUBLISHED","datePublished":"2026-05-22T18:32:15.959Z","dateUpdated":"2026-05-23T03:56:00.655Z","assignerShortName":"Docker","assignerOrgId":"686469e6-3ff6-451b-ab8b-cf5b9e89401e","dateReserved":"2026-04-15T21:42:36.201Z"},"containers":{"cna":{"title":"Docker Desktop Enhanced Container Isolation bypass via --use-api-socket CLI flag","descriptions":[{"lang":"en","value":"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.\n\nA 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":[{"vendor":"Docker","product":"Docker Desktop","defaultStatus":"unaffected","versions":[{"version":"4.41.0","status":"affected","lessThan":"4.59.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"]}],"references":[{"url":"https://docs.docker.com/desktop/release-notes/#4590","tags":["release-notes"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-26-299/","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"HIGH","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":8.8,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"HIGH","baseScore":8.8,"vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","lang":"en","description":"CWE-863: Incorrect Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"Docker","orgId":"686469e6-3ff6-451b-ab8b-cf5b9e89401e","dateUpdated":"2026-05-22T18:32:15.959Z"},"datePublic":"2026-04-23T00:00:00.000Z","impacts":[{"capecId":"CAPEC-122","descriptions":[{"lang":"en","value":"CAPEC-122 Privilege Abuse"}]}],"configurations":[{"lang":"en","value":"Docker Desktop with Enhanced Container Isolation (ECI) enabled (requires Docker Business subscription)","supportingMedia":[{"type":"text/html","base64":false,"value":"Docker Desktop with Enhanced Container Isolation (ECI) enabled (requires Docker Business subscription)"}]}],"workarounds":[{"lang":"en","value":"Upgrade to Docker Desktop 4.59.0 or later. As a workaround, restrict which users can execute Docker CLI commands on the host.","supportingMedia":[{"type":"text/html","base64":false,"value":"Upgrade to Docker Desktop 4.59.0 or later. As a workaround, restrict which users can execute Docker CLI commands on the host."}]}],"credits":[{"lang":"en","value":"Nitesh Surana (niteshsurana.com) of Trend Research","type":"finder"}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-22T00:00:00+00:00","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-6406"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-23T03:56:00.655Z"}}]}}}