{"id":"CVE-2021-41092","aliases":["CVE-2021-41092","GHSA-99pg-grm5-qq3v","BIT-DOCKER-CLI-2021-41092","GO-2024-2912"],"related":["CGA-7fcw-gwmq-h6cg"],"kind":"vulnerability","state":"published","title":"Docker CLI leaks private registry credentials to registry-1.docker.io","summary":"Docker CLI is the command line interface for the docker container runtime. A bug was found in the Docker CLI where running `docker login my-private-registry.example.com` with a misconfigured configuration file (typically `~/.docker/config.json`) listing a `credsStore` or `credHelpers` that could not be executed would result in any provided credentials being sent to `registry-1.docker.io` rather than the intended private registry. This bug has been fixed in Docker CLI 20.10.9. Users should update to this version as soon as possible. For users unable to update ensure that any configured credsStore or credHelpers entries in the configuration file reference an installed credential helper that is executable and on the PATH.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Docker CLI is the command line interface for the docker container runtime. A bug was found in the Docker CLI where running `docker login my-private-registry.example.com` with a misconfigured configuration file (typically `~/.docker/config.json`) listing a `credsStore` or `credHelpers` that could not be executed would result in any provided credentials being sent to `registry-1.docker.io` rather than the intended private registry. This bug has been fixed in Docker CLI 20.10.9. Users should update to this version as soon as possible. For users unable to update ensure that any configured credsStore or credHelpers entries in the configuration file reference an installed credential helper that is executable and on the PATH.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nA bug was found in the Docker CLI where running `docker login my-private-registry.example.com` with a misconfigured configuration file (typically `~/.docker/config.json`) listing a `credsStore` or `credHelpers` that could not be executed would result in any provided credentials being sent to `registry-1.docker.io` rather than the intended private registry.\n\n## Patches\n\nThis bug has been fixed in Docker CLI 20.10.9.  Users should update to this version as soon as possible.\n\n## Workarounds\n\nEnsure that any configured `credsStore` or `credHelpers` entries in the configuration file reference an installed credential helper that is executable and on the `PATH`.\n\n## For more information\n\nIf you have any questions or comments about this advisory:\n\n* [Open an issue](https://github.com/docker/cli/issues/new/choose)\n* Email us at security@docker.com if you think you’ve found a security bug","format":"markdown","source":"ghsa"},{"lang":"en","text":"Docker CLI leaks private registry credentials to registry-1.docker.io in github.com/docker/cli","format":"markdown","source":"go"},{"lang":"es","text":"Docker CLI es la interfaz de línea de comandos para el tiempo de ejecución del contenedor Docker. Se encontró un bug en Docker CLI en el que la ejecución de \"docker login my-private-registry.example.com\" con un archivo de configuración configurado inapropiadamente (normalmente \"~/.docker/config.json\") con una lista de \"credsStore\" o \"credHelpers\" que no podía ser ejecutada, resultaría en que cualquier credencial proporcionada fuera enviada a \"registry-1.docker.io\" en lugar del registro privado previsto. Este bug ha sido corregido en Docker CLI versión  20.10.9. Los usuarios deben actualizar a esta versión tan pronto como sea posible. Para usuarios que no puedan actualizar, asegúrese de que las entradas credsStore o credHelpers configuradas en el archivo de configuración hagan referencia a un ayudante de credenciales instalado que sea ejecutable y esté en el PATH","source":"nvd"}],"published":"2021-10-04T20:10:10.000Z","modified":"2026-10-16T09:45:04.791Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-200","CWE-522"],"affected":[{"ranges":[{"version":"< 20.10.9","status":"affected"}],"vendor":"docker","product":"cli","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"20.10.9"}],"ecosystem":"Go","package":"github.com/docker/cli","purl":"pkg:golang/github.com/docker/cli","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"20.10.9+incompatible"}],"ecosystem":"Go","package":"github.com/docker/cli","purl":"pkg:golang/github.com/docker/cli","source":"go"},{"ranges":[{"status":"affected","fixed":"20.10.9"}],"vendor":"docker","product":"command_line_interface","cpe":"cpe:2.3:a:docker:command_line_interface:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"20.10.9"}],"ecosystem":"Bitnami","package":"docker-cli","purl":"pkg:bitnami/docker-cli","source":"bitnami"}],"references":[{"url":"https://github.com/docker/cli/security/advisories/GHSA-99pg-grm5-qq3v","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/docker/cli/commit/893e52cf4ba4b048d72e99748e0f86b2767c6c6b","tags":["advisory","fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41092","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-41092","url":"https://www.cve.org/CVERecord?id=CVE-2021-41092","licence":"CVE Terms of Use","modified":"2024-08-04T02:59:31.334Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-99pg-grm5-qq3v","url":"https://github.com/advisories/GHSA-99pg-grm5-qq3v","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:15.092Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2912","url":"https://pkg.go.dev/vuln/GO-2024-2912","licence":"CC-BY-4.0","modified":"2026-02-22T22:55:58.678Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-41092","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41092","licence":"Public domain","modified":"2026-06-17T04:07:51.560Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DOCKER-CLI-2021-41092","url":"https://osv.dev/vulnerability/BIT-DOCKER-CLI-2021-41092","licence":"Apache-2.0","modified":"2026-10-16T09:45:04.791Z"}],"updatedAt":"2026-11-25T22:58:04.294Z","epss":{"score":0.01607,"percentile":0.76605,"date":"2026-12-01T12:00:22.000Z"}}