CVE-2021-41092
Docker CLI leaks private registry credentials to registry-1.docker.io
Also known as BIT-docker-cli-2021-41092, GHSA-99pg-grm5-qq3v, GO-2024-2912
Mitigation
- Upgrade github.com/docker/cli to one of 20.10.9, 20.10.9+incompatible (or later in the same release line).
Who should check
- Projects that depend on Go package github.com/docker/cli (< 20.10.9)
- Anyone running docker cli < 20.10.9
Vulnerability facts
- Affected
- github.com/docker/cli < 20.10.9
- Fixed in
- 20.10.9, 20.10.9+incompatible
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: High
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 1.61% chance of exploitation in 30 days (percentile 76, 2026-11-26)
- CWE
- CWE-200
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/docker/cli | < 20.10.9 | 20.10.9, 20.10.9+incompatible | osv |
| docker cli | < 20.10.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-41092. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-41092.md Affected: github.com/docker/cli < 20.10.9 Fixed in: 20.10.9, 20.10.9+incompatible Steps: 1. Search this machine and project for github.com/docker/cli (Go), docker cli: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/docker/cli/security/advisories/GHSA-99pg-grm5-qq3v
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/
- https://nvd.nist.gov/vuln/detail/CVE-2021-41092
Other
- https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB
FAQ
Is CVE-2021-41092 being exploited?
There is no confirmed exploitation: CVE-2021-41092 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.61% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-41092?
Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2021-41092?
github.com/docker/cli < 20.10.9.
Is there a fix for CVE-2021-41092?
Yes. Fixed in 20.10.9, 20.10.9+incompatible. Upgrade github.com/docker/cli to one of 20.10.9, 20.10.9+incompatible (or later in the same release line).
How do I check if I'm affected by CVE-2021-41092?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.