REDHAT-BUG-2501735: High severity Keycloak Keycloak vulnerability
A flaw was found in Keycloak where the default Dynamic Client Registration (DCR) policy permits the use of User Property mappers without validating the target claim path. While the policy checks the mapper provider type, it does not restrict where the mapper can write data within the resulting token. An attacker with a standard user account and a limited Initial Access Token (IAT) can register a new client and configure User Property mappers (such as firstName or lastName) to target the resourceaccess.realm-management.roles claim path. By setting their user profile properties to administrative role names (e.g., manage-clients, realm-admin), the attacker can produce a forged access token containing these roles. Although recent mitigations (CVE-2026-4629) protect the Admin REST API from such forged tokens, the Client Registration API remains vulnerable because it reads the resourceaccess claim directly during authorization. An attacker can use this bypass to perform unauthorized DCR operations, including reading confidential client secrets, modifying redirect URIs, and impersonating service accounts to achieve full realm compromise.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2501735?
The severity of REDHAT-BUG-2501735 is classified as high with a score of 7.
What is the risk associated with REDHAT-BUG-2501735?
The risk associated with REDHAT-BUG-2501735 is rated as 33.
How do I fix REDHAT-BUG-2501735?
To fix REDHAT-BUG-2501735, ensure that the Dynamic Client Registration policy validates the target claim path for User Property mappers.
What specific flaw exists in REDHAT-BUG-2501735?
REDHAT-BUG-2501735 includes a flaw where the default DCR policy does not validate the target claim path for User Property mappers.
Which software is affected by REDHAT-BUG-2501735?
The software affected by REDHAT-BUG-2501735 is Keycloak.