CVE-2025-24976

Description

A flaw was found in Distribution. Certain versions with token authentication enabled may be vulnerable to an issue where token authentication allows an attacker to inject an untrusted signing key in a JSON web token (JWT). The issue is due to 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 key material matches.

Statement

Moderate impact affects Red Hat product records carrying Distribution-related components, including OpenShift Container Platform, Ansible Services, Insights, OpenShift Serverless, and Red Hat Trusted Application Pipeline, when token authentication is enabled. An attacker can submit a JSON web token (JWT) with a JSON web key (JWK) header lacking a certificate chain and a KeyID (kid) that matches a trusted key while the supplied key material is untrusted; the incomplete verification can allow an untrusted signing key to be injected and a forged token to be accepted, with limited confidentiality and integrity impact and no availability impact (Red Hat CVSS 3.1: 6.5). The current product scope is component-specific: delegated records include components marked not affected and won't fix, while the Red Hat Trusted Application Pipeline CLI records are delegated affected; one not-affected tracker states that the vulnerable code is not in the execute path. Delegated affected components are being handled by their product teams with a fix being pursued.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score6.5N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityLowN/AN/A
Privileges RequiredNoneN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityLowN/AN/A
Integrity ImpactLowN/AN/A
Availability ImpactNoneN/AN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Understanding the Weakness (CWE)

Access Control

Technical Impact: Bypass Protection Mechanism

Access control checks for specific user data or functionality can be bypassed.

Access Control

Technical Impact: Gain Privileges or Assume Identity

Horizontal escalation of privilege is possible (one user can view/modify information of another user).

Access Control

Technical Impact: Gain Privileges or Assume Identity

Vertical escalation of privilege is possible if the user-controlled key is actually a flag that indicates administrator status, allowing the attacker to gain administrative access.

Frequently Asked Questions

Want to get errata notifications? Sign up here.