CVE-2025-24976 Details
Description
Distribution is a toolkit to pack, ship, store, and deliver container content. Systems running registry versions 3.0.0-beta.1 through 3.0.0-rc.2 with token authentication enabled may be vulnerable to an issue in which token authentication allows an attacker to inject an untrusted signing key in a JSON web token (JWT). The issue lies in how the JSON web key (JWK) verification is performed. When a JWT contains a JWK header without a certificate chain, the code only checks if the KeyID (`kid`) matches one of the trusted keys, but doesn't verify that the actual key material matches. A fix for the issue is available at commit 5ea9aa028db65ca5665f6af2c20ecf9dc34e5fcd and expected to be a part of version 3.0.0-rc.3. There is no way to work around this issue without patching if the system requires token authentication.
A vulnerability exists in the Distribution registry, specifically in versions 3.0.0-beta.1 prior to 3.0.0-rc.2, when token authentication is enabled. The issue arises from the JSON Web Key (JWK) verification process, which allows an attacker to inject an untrusted signing key into a JSON Web Token (JWT). The vulnerability occurs because the verification code only checks if the Key ID (kid) matches a trusted key, without validating the actual key material. This flaw can be exploited by creating a JWT with a JWK header that includes a public key, bypassing the intended security measures.
Users should update to Distribution registry version 3.0.0-rc.3 or later. If the system requires token authentication, there is no workaround available without applying the patch.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 11, 2025CISA-ADP
Assessed Feb 11, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-639 | Authorization Bypass Through User-Controlled Key | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| github.com/distribution/distribution | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 23, 2026 | CVE Modified | [email protected] |
| Feb 11, 2025 | New CVE Received | [email protected] |
Volerion