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.
Published: 2026-04-06
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Credential Exfiltration via Unvalidated Bearer Realm
Action: Immediate Patch
AI Analysis

Impact

Distribution is a toolkit for shipping container content that retrieves authentication token endpoints from upstream registries by parsing WWW‑Authenticate challenges. The bearer challenge contains a realm URL, which Distribution uses to obtain access tokens without verifying that the realm matches the intended upstream host. This weakness, identified as CWE‑918, means an attacker who can control or intercept the upstream registry’s challenge can supply a malicious realm URL. Distribution will then send the configured upstream credentials by basic authentication to the attacker‑controlled endpoint, revealing credentials that can be used to pull private images or impersonate the upstream registry.

Affected Systems

All releases of Distribution before version 3.1.0 that enable pull‑through caching are affected. The issue occurs when the upstream registry presents a bearer challenge and the realm component is taken at face value.

Risk and Exploitability

The CVSS score is 7.5, indicating high severity, while the EPSS score is below 1 %, suggesting that exploitation is not currently common and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is network‑based, requiring the attacker to control the upstream registry or position themselves as a man‑in‑the‑middle to inject a rogue challenge. Successful exploitation results in credential exfiltration, allowing unauthorized access to downstream registry resources.

Generated by OpenCVE AI on April 9, 2026 at 19:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Distribution to version 3.1.0 or later.
  • If an upgrade is not possible, verify that any configured upstream registry’s bearer challenge realm matches the expected host and does not redirect to a third‑party URL.
  • Implement network segmentation or firewall rules that restrict Distribution’s outbound traffic to known upstream registry hosts.
  • Monitor logs for unexpected outbound HTTP requests to unfamiliar realms, which may indicate an attempt to exfiltrate credentials.

Generated by OpenCVE AI on April 9, 2026 at 19:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-3p65-76g6-3w7r Distribution affected by pull-through cache credential exfiltration via www-authenticate bearer realm
History

Thu, 09 Apr 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Distribution Project
Distribution Project distribution
CPEs cpe:2.3:a:distribution_project:distribution:*:*:*:*:*:go:*:*
Vendors & Products Distribution Project
Distribution Project distribution

Tue, 07 Apr 2026 00:00:00 +0000

Type Values Removed Values Added
First Time appeared Distribution
Distribution distribution
Vendors & Products Distribution
Distribution distribution
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 06 Apr 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title Distribution affected by pull-through cache credential exfiltration via www-authenticate bearer realm
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Subscriptions

Distribution Distribution
Distribution Project Distribution
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-06T15:04:50.154Z

Reserved: 2026-03-20T18:05:11.831Z

Link: CVE-2026-33540

cve-icon Vulnrichment

Updated: 2026-04-06T15:04:39.539Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-06T15:17:10.950

Modified: 2026-04-09T18:36:53.427

Link: CVE-2026-33540

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-04-06T14:55:04Z

Links: CVE-2026-33540 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-10T09:45:16Z

Weaknesses