CVE-2021-41092
Docker CLI leaks private registry credentials to registry-1.docker.io
Reported by github_m · Published October 4, 2021
github.com/docker/cli is fixed in 20.10.9+incompatible and 20.10.9 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/docker/cli | Go Modules | 20.10.9+incompatible, 20.10.9 |
| docker | Arch Linux | 1:20.10.9-1 |
| dive | Chainguard | 0.12.0-r8 |
| dive | Wolfi | 0.12.0-r8 |
| docker | Alpine | 20.10.9-r0 |
| docker-cli | Bitnami | 20.10.9 |
| command_line_interface | docker | 20.10.9 |
| pathval | n/a | unspecified |
| docker-cli | Bitnami | 20.10.9 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| docker | cli | < 20.10.9 |
| arch | docker | 0 |
| chainguard | dive | 0 |
| wolfi | dive | 0 |
| alpine | docker | 0 |
| github.com | docker/cli | 0 |
| docker | cli | 0 |
Timeline
- Oct 4, 2021 CVE Published
- Oct 5, 2021 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (10 in total, the first dated here)
- Mar 20, 2026 Distribution Patch (3 in total, the first dated here)
- Jul 21, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-41092
vulnetix vdb fixes CVE-2021-41092
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-41092/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- FEDORA-2021-df975338d4 vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-b5a9a481a2 vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2021-41092 advisory