CVE-2026-33540

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductDistribution
PublishedApr 6, 2026
First seenApr 6, 2026

How to fix

Update
  • distribution_project distribution3.1.0 or later
  • github.com/distribution/distribution/v33.1.0 or later

Affected products

ProductAffected versionsFixed in
distribution_project distributionv < 3.1.03.1.0
github.com/distribution/distribution/v3Gov < 3.1.03.1.0
github.com/distribution/distributionGov ≤ 2.8.3, No range specified—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.