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 package | Versions | Reported by |
|---|---|---|
| docker cli | < 20.10.9 | CVE List |
| github.com/docker/cli (Go) | before 20.10.9, before 20.10.9+incompatible | GitHub Advisory Database, Go Vulnerability Database |
| docker command_line_interface | before 20.10.9 | NVD |
| fedoraproject fedora | 34, 35 | NVD |
| docker-cli (Bitnami) | before 20.10.9 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| Bitnami Vulnerability Database | high 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:
- Open an issue
- Email us at security@docker.com if you think you’ve found a security bug
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
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41092 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-99pg-grm5-qq3v changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2912 changed 2026-02-22 | CC-BY-4.0 |
| NVD | CVE-2021-41092 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DOCKER-CLI-2021-41092 changed 2026-10-16 | Apache-2.0 |