CVE-2026-33540
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/distribution/distribution/v3Go | < 3.1.0 | 3.1.0 |
github.com/distribution/distributionGo | <= 2.8.3 | — |
Affected products
18- osv-coords17 versionspkg:apk/chainguard/envoy-gateway-egctlpkg:apk/chainguard/envoy-gateway-fips-egctlpkg:apk/chainguard/gitlab-rails-ce-18.11pkg:apk/chainguard/gitlab-rails-ce-fips-18.11pkg:apk/chainguard/gitnesspkg:apk/chainguard/kotspkg:apk/chainguard/portierispkg:apk/chainguard/portieris-fipspkg:apk/chainguard/zotpkg:apk/wolfi/envoy-gateway-egctlpkg:apk/wolfi/gitnesspkg:apk/wolfi/kotspkg:apk/wolfi/portierispkg:apk/wolfi/zotpkg:golang/github.com/distribution/distributionpkg:golang/github.com/distribution/distribution/v3pkg:rpm/opensuse/distribution&distro=openSUSE%20Tumbleweed
< 1.7.1-r3+ 16 more
- (no CPE)range: < 1.7.1-r3
- (no CPE)range: < 1.7.1-r3
- (no CPE)range: < 18.11.6-r0
- (no CPE)range: < 18.11.6-r0
- (no CPE)range: < 3.3.0-r12
- (no CPE)range: < 1.130.0-r3
- (no CPE)range: < 0.13.38-r0
- (no CPE)range: < 0.13.38-r0
- (no CPE)range: < 2.1.15-r8
- (no CPE)range: < 1.7.1-r3
- (no CPE)range: < 3.3.0-r12
- (no CPE)range: < 1.130.0-r3
- (no CPE)range: < 0.13.38-r0
- (no CPE)range: < 2.1.15-r8
- (no CPE)range: <= 2.8.3
- (no CPE)range: < 3.1.0
- (no CPE)range: < 3.1.0-1.1
Patches
Vulnerability mechanics
References
4- github.com/distribution/distribution/security/advisories/GHSA-3p65-76g6-3w7rnvdExploitMitigationVendor AdvisoryWEB
- github.com/advisories/GHSA-3p65-76g6-3w7rghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-33540ghsaADVISORY
- github.com/distribution/distribution/commit/cc5d5fa4ba02157501e6afa2cc6a903ad0338e7bghsaWEB
News mentions
0No linked articles in our index yet.