Docker CLI leaks private registry credentials to registry-1.docker.io
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.
- Products
- docker-cli
- Affected versions
- Not specified
- Fixed versions
- 20.10.9
- CVEs
- CVE-2021-41092
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 19:49 UTC · Revision 1
Source evidence
Docker CLI leaks private registry credentials to registry-1.docker.io
core-osv · Original sourcePublished 6 Feb 2026, 09:41 UTC
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.
osv:BIT-docker-cli-2021-41092
docker-cli
Fixed versions: 20.10.9
Complete source record
{
"id": "457392816dfba456ece7532caeff34f54dcef02e9af5ae075bb51f2edc4a0bfb",
"url": "https://osv.dev/vulnerability/BIT-docker-cli-2021-41092",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Docker CLI leaks private registry credentials to registry-1.docker.io",
"summary": "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.",
"evidence": "osv:BIT-docker-cli-2021-41092",
"products": [
{
"name": {
"value": "docker-cli",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "20.10.9",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "BIT-docker-cli-2021-41092",
"aliases": [
"BIT-docker-cli-2021-41092",
"CVE-2021-41092",
"GHSA-99pg-grm5-qq3v",
"GO-2024-2912"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "20.10.9"
}
]
}
],
"package": {
"name": "docker-cli",
"purl": "pkg:bitnami/docker-cli",
"ecosystem": "Bitnami"
},
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"database_specific": {
"source": "https://github.com/bitnami/vulndb/tree/main/data/docker-cli/BIT-docker-cli-2021-41092.json"
}
}
],
"modified": "2026-10-16T09:45:04.791437899Z",
"provider": "osv",
"references": [
"https://github.com/docker/cli/commit/893e52cf4ba4b048d72e99748e0f86b2767c6c6b",
"https://github.com/docker/cli/security/advisories/GHSA-99pg-grm5-qq3v",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/",
"https://nvd.nist.gov/vuln/detail/CVE-2021-41092"
],
"provider_metadata": {
"cpes": [
"cpe:2.3:a:docker:command_line_interface:*:*:*:*:*:*:*:*"
],
"severity": "High"
}
},
"related_cves": [
{
"value": "CVE-2021-41092",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 338137,
"published_at": "2026-02-06T09:41:30.146+00:00"
}