CVE-2021-41092
JSON

5.4medium

Docker CLI leaks private registry credentials to registry-1.docker.io

Severity
5.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.61% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-99pg-grm5-qq3vBIT-DOCKER-CLI-2021-41092GO-2024-2912

Description

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.

Affected

Product or packageVersionsReported by
docker cli< 20.10.9CVE List
github.com/docker/cli (Go)before 20.10.9, before 20.10.9+incompatibleGitHub Advisory Database, Go Vulnerability Database
docker command_line_interfacebefore 20.10.9NVD
fedoraproject fedora34, 35NVD
docker-cli (Bitnami)before 20.10.9Bitnami Vulnerability Database

All scores

GitHub_M5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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.

GitHub Advisory Database

Impact

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.

Patches

This bug has been fixed in Docker CLI 20.10.9. Users should update to this version as soon as possible.

Workarounds

Ensure that any configured credsStore or credHelpers entries in the configuration file reference an installed credential helper that is executable and on the PATH.

For more information

If you have any questions or comments about this advisory:

Go Vulnerability Database

Docker CLI leaks private registry credentials to registry-1.docker.io in github.com/docker/cli

NVD (es)

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

References

https://github.com/docker/cli/security/advisories/GHSA-99pg-grm5-qq3vadvisory, third-party-advisory, web
https://github.com/docker/cli/commit/893e52cf4ba4b048d72e99748e0f86b2767c6c6badvisory, fix, patch, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/vendor-advisory, web
https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdfweb
https://nvd.nist.gov/vuln/detail/CVE-2021-41092advisory, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBBweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIBweb

Related

Sources

SourceRecordLicence
CVE ListCVE-2021-41092 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-99pg-grm5-qq3v changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2912 changed 2026-02-22CC-BY-4.0
NVDCVE-2021-41092 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DOCKER-CLI-2021-41092 changed 2026-10-16Apache-2.0