CVE Catalog

CVE-2026-33540

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Summary

In pull-through cache mode, Distribution (prior to 3.1.0) 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, allowing an attacker-controlled upstream (or an attacker in a MitM position) to cause Distribution to send the configured upstream credentials via basic auth to an attacker-controlled realm URL. The vulnerability is fixed in 3.1.0.

Risk Assessment

An attacker can capture upstream registry credentials, enabling unauthorized access to private container images and further supply chain attacks. The risk is particularly relevant in environments with untrusted or compromised upstream registries.

Recommendation

Update Distribution to version 3.1.0 or later. Verify the trustworthiness of configured upstream registries and consider enforcing TLS connections with certificate validation.

Other vulnerabilities in Distribution

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS