CVE-2021-41092 Docker CLI leaks private registry credentials to registry-1.docker.io
Docker CLI leaks private registry credentials to Docker Hub when credential helpers are misconfigured, exposing sensitive authentication data.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-41092?
CVE-2021-41092 is a medium-severity vulnerability in Fedoraproject Fedora, published on 4 Oct 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official 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.
Which versions are affected by CVE-2021-41092?
4 open source packages ship an affected version, including github.com/docker/cli and docker-cli. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/docker/cli Go | All versions | 20.10.9 |
github.com/docker/cli Go | All versions | 20.10.9 |
github.com/docker/cli Go | All versions | 20.10.9+incompatible |
docker-cli Bitnami | All versions | 20.10.9 |
Linux distribution packages (1)
docker openSUSE:Tumbleweed | All versions | 20.10.9_ce-1.1 |
Products include Docker Command Line Interface, Fedoraproject Fedora.
How do I fix CVE-2021-41092?
Upgrade github.com/docker/cli to a fixed version for your release line: 20.10.9 or 20.10.9+incompatible.
Is CVE-2021-41092 being exploited?
There is no known exploitation of CVE-2021-41092 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as BIT-docker-cli-2021-41092, CLEANSTART-2026-SS82988, DEBIAN-CVE-2021-41092, GHSA-99pg-grm5-qq3v, GO-2024-2912, UBUNTU-CVE-2021-41092 and 2 more.