{"id":"CVE-2026-6406","aliases":["CVE-2026-6406"],"related":[],"kind":"vulnerability","state":"published","title":"Docker Desktop Enhanced Container Isolation bypass via --use-api-socket CLI flag","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.\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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"La bandera '--use-api-socket' de Docker CLI elude las restricciones de Aislamiento Mejorado de Contenedores (ECI) en Docker Desktop. Cuando ECI está habilitado, los montajes de sockets de Docker desde los contenedores son denegados a menos que se permitan explícitamente a través de la configuración de  admin-settings . Sin embargo, la bandera '--use-api-socket' añade el montaje del socket de Docker a través del campo 'HostConfig.Mounts' en lugar del campo 'HostConfig.Binds'. La aplicación de ECI en el proxy de la API de Docker Desktop solo inspeccionaba  Binds , permitiendo que el montaje pasara sin ser verificado. Esto otorga a un contenedor acceso completo al socket del Docker Engine y, si el usuario del host ha iniciado sesión en registros de contenedores, sus credenciales de autenticación.\n\nUn atacante local con la capacidad de ejecutar comandos de Docker CLI puede explotar esto para evadir las restricciones de ECI, acceder al Docker Engine y potencialmente escalar privilegios.","source":"nvd"}],"published":"2026-05-22T18:32:15.959Z","modified":"2026-07-23T16:10:00.137Z","severity":{"scorer":"Docker","scheme":"CVSS: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","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Docker","scheme":"CVSS: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","score":8.8,"rating":"HIGH"},{"scorer":"Docker","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"4.41.0","fixed":"4.59.0","status":"affected"}],"vendor":"Docker","product":"Docker Desktop","platforms":["MacOS","Linux","Windows"],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.41.0","fixed":"4.59.0"}],"vendor":"docker","product":"docker_desktop","cpe":"cpe:2.3:a:docker:docker_desktop:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://docs.docker.com/desktop/release-notes/#4590","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-26-299/","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Nitesh Surana (niteshsurana.com) of Trend Research"],"assigner":"Docker","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-22T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6406","url":"https://www.cve.org/CVERecord?id=CVE-2026-6406","licence":"CVE Terms of Use","modified":"2026-05-23T03:56:00.655Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6406","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6406","licence":"Public domain","modified":"2026-07-23T16:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:22.203Z","epss":{"score":0.00144,"percentile":0.03876,"date":"2026-12-01T12:00:22.000Z"}}