CVE-2025-24976: Distribution's token authentication allows to inject an untrusted signing key in a JWT
Impact Systems running registry version 3.0.0-beta.1 with token authentication enabled. Patches Update to at least v3.0.0-rc.3 Workarounds There is no way to work around this issue without patching if your system requires token authentication. References The issue lies in how the JWK verification is performed.
Published Feb 11, 2025 · Updated Jan 23, 2026
Affected packages
github.com/distribution/distribution/v3
- Ecosystem
- Go
- Affected
- > 3.0.0-beta.1, < 3.0.0-rc.3
- Fixed in
- 3.0.0-rc.3
- Check
go list -m github.com/distribution/distribution/v3
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Systems running registry version > 3.0.0-beta.1 with token authentication enabled.
Patches
Update to at least v3.0.0-rc.3
Workarounds
There is no way to work around this issue without patching if your system requires token authentication.
References
The issue lies in how the 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.
Here's the problematic flow:
- An attacker generates their own key pair
- They create a JWT and include their public key in the JWK header
- They set the
kidin the JWK to match one of the trusted keys' IDs (which they could potentially discover) - They sign the JWT with their private key
- The registry only checks if the
kidexists in the trusted keys map but then uses the attacker's public key from the JWK to verify the signature
Credited to evanebb.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-85747
Distribution: Client `manifests.Get()` does not verify returned content against requested digest
medium6.8No fixOct 15, 2026CVE-2026-41888
Distribution's tag deletion bypasses `storage.delete.enabled` configuration
medium6.3No fixMay 4, 2026CVE-2026-33540
Distribution affected by pull-through cache credential exfiltration via www-authenticate bearer realm
high7.5No fixApr 6, 2026CVE-2026-35172
Distribution: stale blob access resurrection via repo-scoped redis descriptor cache invalidation
high7.5No fixApr 6, 2026
