CVE-2026-33540
Distribution affected by pull-through cache credential exfiltration via www-authenticate bearer realm
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| go | github.com/distribution/distribution/v3 | < 3.1.0 | 3.1.0 |
| go | github.com/distribution/distribution | <= 2.8.3 | nicht erfasst |
Betroffene Produkte · Distribution Project
| Produkt | Betroffene Versionen |
|---|---|
| Distribution | vor 3.1.0 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/advisories/GHSA-3p65-76g6-3w7r
- https://github.com/distribution/distribution/security/advisories/GHSA-3p65-76g6-3w7r
- https://nvd.nist.gov/vuln/detail/CVE-2026-33540
- https://github.com/distribution/distribution/commit/cc5d5fa4ba02157501e6afa2cc6a903ad0338e7b