REDHAT-BUG-2501739: Medium severity Keycloak Keycloak vulnerability
An incorrect authorization flaw was found in the Keycloak admin REST API endpoints responsible for removing child roles from composite roles. Specifically, the DELETE /admin/realms/{realm}/roles-by-id/{role-id}/composites and DELETE /admin/realms/{realm}/roles/{role-name}/composites endpoints only verify if the caller has manage permissions on the parent role container. They fail to enforce the per-child role check that is correctly implemented in the corresponding add operation. To exploit this, an attacker must have a delegated admin account with manage permissions on a parent role container (such as manage-realm or Fine-Grained Admin Permissions on a specific role container). No user interaction is required. A successful attack allows a delegated administrator to remove privileged child roles (like realm-admin) from existing composites. This results in stripping those roles from all users or groups assigned to the composite, effectively degrading the privileges of other administrators or disrupting realm-wide functionality by modifying default roles.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2501739?
The severity of REDHAT-BUG-2501739 is classified as medium (4).
What vulnerability does REDHAT-BUG-2501739 address?
REDHAT-BUG-2501739 addresses an incorrect authorization flaw in Keycloak's admin REST API endpoints.
How do I fix REDHAT-BUG-2501739?
To fix REDHAT-BUG-2501739, you should update to the latest version of Keycloak that addresses this authorization flaw.
What are the affected endpoints in REDHAT-BUG-2501739?
The affected endpoints in REDHAT-BUG-2501739 are DELETE /admin/realms/{realm}/roles-by-id/{role-id}/composites and DELETE /admin/realms/{realm}/roles/{role-name}/composites.
What impact does REDHAT-BUG-2501739 have on Keycloak?
The impact of REDHAT-BUG-2501739 could allow unauthorized users to remove child roles from composite roles in Keycloak.