CVE-2021-41092: Docker CLI leaks private registry credentials to registry-1.docker.io
Vulnerability summary
CVE-2021-41092 is a high (CVSS 7.5) vulnerability in docker cli. EPSS estimates a 1.65% chance of exploitation in the next 30 days, higher than 76.5% of scored vulnerabilities.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 12Timeline
- 04-10-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
9 scores · 8 sources · 2 versions- CVE.orgCNA5.4MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · GoEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.65%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.65% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-522Insufficiently Protected CredentialsThe product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.
Affected systems
Known conditions: network-reachable, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
Docker2 products
- cli< 20.10.9
- command_line_interface< 20.10.9
Alpine1 product
- docker< 20.10.9-r0
Chainguard1 product
- dive< 0.12.0-r8
Debian1 product
- docker.io< 20.10.10+dfsg1-1
Fedoraproject1 product
- fedoraEOL34 | 35
Github.com/docker1 product
- cli< 20.10.9 | < 20.10.9+incompatible
Opensuse1 product
- docker&distro=openSUSE Tumbleweed< 20.10.9_ce-1.1
Ubuntu1 product
- docker.io< 20.10.7-0ubuntu5~18.04.3 | < 20.10.7-0ubuntu5~20.04.2 | All versions (No fix recorded) | < 20.10.7-0ubuntu7
Wolfi1 product
- dive< 0.12.0-r8
9 vendors · 10 products
References
14 links- github.com/docker/cli/security/advisories/GHSA-99pg-grm5-qq3vX Refsource CONFIRMREPORTAdvisoryWEBThird Party Advisory
- github.com/docker/cli/commit/893e52cf4ba4b048d72e99748e0f86b2767c6c6bX Refsource MISCREPORTFIXWEBPatchThird Party Advisory