Vulnerability · Published Oct 4, 2021 · Assigned by GitHub_M

CVE-2021-41092Docker CLI leaks private registry credentials to registry-1.docker.io

Medium 5.4

In plain English

A medium-severity information exposure in cli from docker. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)1.7%top 23.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20docker20.10.9-r0ALPINE-CVE-2021-41092
Alpine:v3.21docker20.10.9-r0ALPINE-CVE-2021-41092
Alpine:v3.22docker20.10.9-r0ALPINE-CVE-2021-41092
Alpine:v3.23docker20.10.9-r0ALPINE-CVE-2021-41092
Alpine:v3.24docker20.10.9-r0ALPINE-CVE-2021-41092
Debian:12docker.io20.10.10+dfsg1-1DEBIAN-CVE-2021-41092
Debian:13docker.io20.10.10+dfsg1-1DEBIAN-CVE-2021-41092
Debian:14docker.io20.10.10+dfsg1-1DEBIAN-CVE-2021-41092
Gogithub.com/docker/cli20.10.9GHSA-99pg-grm5-qq3v
Gogithub.com/docker/cli20.10.9+incompatibleGO-2024-2912
Ubuntu:22.04:LTSdocker.io20.10.7-0ubuntu7UBUNTU-CVE-2021-41092

Affected products (as reported)

VendorProductVersions
docker cli < 20.10.9

Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N

References