REDHAT-BUG-2501302: Medium severity keycloak-services vulnerability
An information disclosure vulnerability exists in keycloak-services when Fine-Grained Admin Permissions (FGAP) v2 is enabled. The issue resides in the GET /admin/realms/{realm}/groups endpoint when the search parameter is used with briefRepresentation=false. The root cause is improper authorization filtering during the construction of the group hierarchy in the search results. While a delegated admin may be explicitly denied direct access to a parent group (resulting in a 403 Forbidden on direct GET requests), the search mechanism fails to redact the parent group's details when it is returned as part of the hierarchy for a visible child group. Exploitation Conditions: FGAP v2 must be enabled.
The attacker must have an account with query-groups permissions.
The attacker must have Groups:view permissions on at least one child group within a restricted parent group.
Concrete Impact: An attacker can disclose the following information for unauthorized parent groups: Internal UUIDs and group names.
Custom group attributes (which may contain sensitive metadata).
Role mappings associated with the parent group.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2501302?
The severity of REDHAT-BUG-2501302 is medium with a risk rating of 4.
What type of vulnerability is REDHAT-BUG-2501302?
REDHAT-BUG-2501302 is an information disclosure vulnerability.
How does REDHAT-BUG-2501302 occur?
REDHAT-BUG-2501302 occurs when the search parameter is used with briefRepresentation=false in the GET /admin/realms/{realm}/groups endpoint.
What software is affected by REDHAT-BUG-2501302?
The vulnerability REDHAT-BUG-2501302 affects keycloak-services.
What can be done to mitigate REDHAT-BUG-2501302?
To mitigate REDHAT-BUG-2501302, it is recommended to review and improve the authorization settings for Fine-Grained Admin Permissions.