Authorization Bypass Through User-Controlled Key Affecting github.com/distribution/distribution/v3/registry/auth/token package, versions <3.0.0-rc.3


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Authorization Bypass Through User-Controlled Key vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMDISTRIBUTIONDISTRIBUTIONV3REGISTRYAUTHTOKEN-8715589
  • published12 Feb 2025
  • disclosed11 Feb 2025
  • creditevanebb

Introduced: 11 Feb 2025

NewCVE-2025-24976  (opens in a new tab)
CWE-639  (opens in a new tab)

How to fix?

Upgrade github.com/distribution/distribution/v3/registry/auth/token to version 3.0.0-rc.3 or higher.

Overview

Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key due to improper verification of JSON Web Key (JWK) material in the token authentication process. An attacker can exploit this vulnerability by injecting an untrusted signing key into a JSON Web Token (JWT) when the JWT contains a JWK header without a certificate chain.

References

CVSS Scores

version 4.0
version 3.1