docker-registry — security advisory
Distribution is a toolkit to pack, ship, store, and deliver container content. Prior to 3.1.0, in pull-through cache mode, distribution discovers token auth endpoints by parsing WWW-Authenticate challenges returned by the configured upstream registry. The realm URL from a bearer challenge is used without validating that it matches the upstream registry host. As a result, an attacker-controlled upstream (or an attacker with MitM position to the upstream) can cause distribution to send the configured upstream credentials via basic auth to an attacker-controlled realm URL. This vulnerability is fixed in 3.1.0.
- Products
- docker-registry
- Affected versions
- 2.1.1~ds1-4, 2.1.1~ds1-4ubuntu1, 2.3.0~ds1-1, 2.3.0~ds1-1ubuntu0.1~esm1, 2.6.2~ds1-1, 2.6.2~ds1-1ubuntu0.1~esm1, 2.6.2~ds1-2, 2.7.1+ds2-5, 2.7.1+ds2-7, 2.7.1+ds2-7build2, 2.7.1+ds2-7ubuntu0.1, 2.7.1+ds2-7ubuntu0.2, 2.7.1+ds2-7ubuntu0.3, 2.7.1~ds1-2, 2.7.1~ds1-3, 2.7.1~ds1-4, 2.8.0+ds1-4, 2.8.0+ds1-4ubuntu0.1~esm1, 2.8.0+ds1-4ubuntu0.1~esm2, 2.8.0+ds1-4ubuntu0.1~esm3, 2.8.2+ds1-1build1, 2.8.2+ds1-1ubuntu0.24.04.1, 2.8.2+ds1-1ubuntu0.24.04.2, 2.8.2+ds1-1ubuntu0.24.04.3, 2.8.3+ds1-2, 2.8.3+ds1-2build1, 2.8.3+ds1-2ubuntu0.26.04.1~esm1, 2.8.3+ds1-3
- Fixed versions
- Not specified
- CVEs
- CVE-2026-33540
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:07 UTC · Revision 1
Source evidence
Distribution is a toolkit to pack, ship, store, and deliver container content. Prior to 3.1.0, in pull-through cache mode, distribution discovers token auth endpoints by parsing WWW-Authenticate challenges returned by the configured upstream registry. The realm URL from a bearer challenge is used without validating that it matches the upstream registry host. As a result, an attacker-controlled upstream (or an attacker with MitM position to the upstream) can cause distribution to send the configured upstream credentials via basic auth to an attacker-controlled realm URL. This vulnerability is fixed in 3.1.0.
osv:UBUNTU-CVE-2026-33540
docker-registry
Fixed versions: Not specified
docker-registry
Fixed versions: Not specified
docker-registry
Fixed versions: Not specified
docker-registry
Fixed versions: Not specified
docker-registry
Fixed versions: Not specified
docker-registry
Fixed versions: Not specified
docker-registry
Fixed versions: Not specified
docker-registry
Fixed versions: Not specified
Complete source record
{
"id": "46f54f964a9031c18fa550740c6f9e8a6a9b1480c37f036c274e2c74fcf1975b",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-33540",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-33540",
"summary": "Distribution is a toolkit to pack, ship, store, and deliver container content. Prior to 3.1.0, in pull-through cache mode, distribution discovers token auth endpoints by parsing WWW-Authenticate challenges returned by the configured upstream registry. The realm URL from a bearer challenge is used without validating that it matches the upstream registry host. As a result, an attacker-controlled upstream (or an attacker with MitM position to the upstream) can cause distribution to send the configured upstream credentials via basic auth to an attacker-controlled realm URL. This vulnerability is fixed in 3.1.0.",
"evidence": "osv:UBUNTU-CVE-2026-33540",
"products": [
{
"name": {
"value": "docker-registry",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1.1~ds1-4",
"evidence": "/affected/0/versions"
},
{
"value": "2.1.1~ds1-4ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "2.3.0~ds1-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.3.0~ds1-1ubuntu0.1~esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "docker-registry",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.6.2~ds1-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.6.2~ds1-1ubuntu0.1~esm1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "docker-registry",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.6.2~ds1-2",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.1~ds1-2",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.1~ds1-3",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.1~ds1-4",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.1+ds2-5",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.1+ds2-7",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.1+ds2-7ubuntu0.1",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.1+ds2-7ubuntu0.2",
"evidence": "/affected/2/versions"
},
{
"value": "2.7.1+ds2-7ubuntu0.3",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "docker-registry",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.7.1+ds2-7build2",
"evidence": "/affected/3/versions"
},
{
"value": "2.8.0+ds1-4",
"evidence": "/affected/3/versions"
},
{
"value": "2.8.0+ds1-4ubuntu0.1~esm1",
"evidence": "/affected/3/versions"
},
{
"value": "2.8.0+ds1-4ubuntu0.1~esm2",
"evidence": "/affected/3/versions"
},
{
"value": "2.8.0+ds1-4ubuntu0.1~esm3",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "docker-registry",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8.2+ds1-1build1",
"evidence": "/affected/4/versions"
},
{
"value": "2.8.2+ds1-1ubuntu0.24.04.1",
"evidence": "/affected/4/versions"
},
{
"value": "2.8.2+ds1-1ubuntu0.24.04.2",
"evidence": "/affected/4/versions"
},
{
"value": "2.8.2+ds1-1ubuntu0.24.04.3",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "docker-registry",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8.3+ds1-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "docker-registry",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8.3+ds1-2build1",
"evidence": "/affected/6/versions"
},
{
"value": "2.8.3+ds1-3",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "docker-registry",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8.3+ds1-2",
"evidence": "/affected/7/versions"
},
{
"value": "2.8.3+ds1-2build1",
"evidence": "/affected/7/versions"
},
{
"value": "2.8.3+ds1-2ubuntu0.26.04.1~esm1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-33540",
"aliases": [
"UBUNTU-CVE-2026-33540"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "docker-registry",
"purl": "pkg:deb/ubuntu/docker-registry?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"2.1.1~ds1-4",
"2.1.1~ds1-4ubuntu1",
"2.3.0~ds1-1",
"2.3.0~ds1-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33540.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "docker-registry",
"binary_version": "2.3.0~ds1-1ubuntu0.1~esm1"
},
{
"binary_name": "golang-github-docker-distribution-dev",
"binary_version": "2.3.0~ds1-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "docker-registry",
"purl": "pkg:deb/ubuntu/docker-registry?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"2.6.2~ds1-1",
"2.6.2~ds1-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33540.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "docker-registry",
"binary_version": "2.6.2~ds1-1ubuntu0.1~esm1"
},
{
"binary_name": "golang-github-docker-distribution-dev",
"binary_version": "2.6.2~ds1-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "docker-registry",
"purl": "pkg:deb/ubuntu/docker-registry?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.6.2~ds1-2",
"2.7.1~ds1-2",
"2.7.1~ds1-3",
"2.7.1~ds1-4",
"2.7.1+ds2-5",
"2.7.1+ds2-7",
"2.7.1+ds2-7ubuntu0.1",
"2.7.1+ds2-7ubuntu0.2",
"2.7.1+ds2-7ubuntu0.3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33540.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "docker-registry",
"binary_version": "2.7.1+ds2-7ubuntu0.3"
},
{
"binary_name": "golang-github-docker-distribution-dev",
"binary_version": "2.7.1+ds2-7ubuntu0.3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "docker-registry",
"purl": "pkg:deb/ubuntu/docker-registry?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"2.7.1+ds2-7build2",
"2.8.0+ds1-4",
"2.8.0+ds1-4ubuntu0.1~esm1",
"2.8.0+ds1-4ubuntu0.1~esm2",
"2.8.0+ds1-4ubuntu0.1~esm3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33540.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "docker-registry",
"binary_version": "2.8.0+ds1-4ubuntu0.1~esm3"
},
{
"binary_name": "golang-github-docker-distribution-dev",
"binary_version": "2.8.0+ds1-4ubuntu0.1~esm3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "docker-registry",
"purl": "pkg:deb/ubuntu/docker-registry?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.8.2+ds1-1build1",
"2.8.2+ds1-1ubuntu0.24.04.1",
"2.8.2+ds1-1ubuntu0.24.04.2",
"2.8.2+ds1-1ubuntu0.24.04.3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33540.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "docker-registry",
"binary_version": "2.8.2+ds1-1ubuntu0.24.04.3"
},
{
"binary_name": "golang-github-docker-distribution-dev",
"binary_version": "2.8.2+ds1-1ubuntu0.24.04.3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "docker-registry",
"purl": "pkg:deb/ubuntu/docker-registry?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.8.3+ds1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33540.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "docker-registry",
"binary_version": "2.8.3+ds1-2"
},
{
"binary_name": "golang-github-docker-distribution-dev",
"binary_version": "2.8.3+ds1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "docker-registry",
"purl": "pkg:deb/ubuntu/docker-registry?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.8.3+ds1-2build1",
"2.8.3+ds1-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33540.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "docker-registry",
"binary_version": "2.8.3+ds1-3"
},
{
"binary_name": "golang-github-docker-distribution-dev",
"binary_version": "2.8.3+ds1-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "docker-registry",
"purl": "pkg:deb/ubuntu/docker-registry?arch=source&distro=esm-apps%2Fresolute",
"ecosystem": "Ubuntu:Pro:26.04:LTS"
},
"versions": [
"2.8.3+ds1-2",
"2.8.3+ds1-2build1",
"2.8.3+ds1-2ubuntu0.26.04.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33540.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "docker-registry",
"binary_version": "2.8.3+ds1-2ubuntu0.26.04.1~esm1"
},
{
"binary_name": "golang-github-docker-distribution-dev",
"binary_version": "2.8.3+ds1-2ubuntu0.26.04.1~esm1"
}
]
}
}
],
"modified": "2026-10-17T12:58:10.628790024Z",
"provider": "osv",
"upstream": [
"CVE-2026-33540"
],
"references": [
"https://ubuntu.com/security/CVE-2026-33540",
"https://www.cve.org/CVERecord?id=CVE-2026-33540",
"https://github.com/distribution/distribution/security/advisories/GHSA-3p65-76g6-3w7r"
]
},
"related_cves": [
{
"value": "CVE-2026-33540",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 358285,
"published_at": "2026-04-06T15:17:00+00:00"
}