REDHAT-BUG-2487906: Medium severity Keycloak Keycloak admin-ui-ext vulnerability
An authorization bypass vulnerability exists in the Keycloak admin-ui-ext bulk role-mapping-delete endpoints (POST /admin/realms/{realm}/ui-ext/role-mapping-delete/users/{id} and POST /admin/realms/{realm}/ui-ext/role-mapping-delete/groups/{id}). The implementation only performs a container-level authorization check (requireMapRoles) but fails to enforce the per-role authorization check (requireMapRole) required by the standard Admin REST API. As a result, an authenticated attacker with high privileges (specifically a delegated administrator with manage-users permissions) can bypass intended restrictions to remove sensitive realm-management roles (such as manage-realm, manage-clients, or realm-admin) from other administrators. This operation is correctly blocked with a 403 Forbidden error when attempted via the standard Admin REST API.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2487906?
The severity of REDHAT-BUG-2487906 is rated as medium with a score of 4.
What is REDHAT-BUG-2487906?
REDHAT-BUG-2487906 is an authorization bypass vulnerability in the Keycloak admin-ui-ext bulk role-mapping-delete endpoints.
How do I fix REDHAT-BUG-2487906?
To fix REDHAT-BUG-2487906, users should apply the latest security patches provided by Keycloak for the affected versions.
What endpoints are affected by REDHAT-BUG-2487906?
The affected endpoints in REDHAT-BUG-2487906 are POST /admin/realms/{realm}/ui-ext/role-mapping-delete/users/{id} and POST /admin/realms/{realm}/ui-ext/role-mapping-delete/groups/{id}.
Who is affected by REDHAT-BUG-2487906?
Users of Keycloak admin-ui-ext who utilize the bulk role-mapping-delete functionality are affected by REDHAT-BUG-2487906.