Live threats

All CVEs / Distribution Project

CVE-2026-33540Distribution Project Distribution

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Apr 6, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-918
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Distribution.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/distribution/distribution ≤ 2.8.3 no fixed version —
Go github.com/distribution/distribution all no fixed version —
Go github.com/distribution/distribution/v3 < 3.1.0 3.1.0 go get github.com/distribution/distribution/v3@v3.1.0
Go github.com/distribution/distribution/v3 < 3.1.0 3.1.0 go get github.com/distribution/distribution/v3@v3.1.0

Per OSV / GitHub Advisories (GHSA-3p65-76g6-3w7r, GO-2026-5094). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
distribution_projectdistribution< 3.1.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.