A Privilege Escalation vulnerability was identified in the Keycloak identity and access management solution, specifically when FGAPv2 is enabled in version 26.2.x. The flaw lies in the admin permission enforcement logic, where a user with manage-users privileges can self-assign realm-admin rights. The escalation occurs due to missing privilege boundary checks in role mapping operations via the admin REST interface. A malicious administrator with limited permissions can exploit this by editing their own user roles, gaining unauthorized full access to realm configuration and user data.
This issue has been addressed in the following products: Red Hat build of Keycloak 26 Via RHSA-2025:12015 https://access.redhat.com/errata/RHSA-2025:12015
This issue has been addressed in the following products: Red Hat build of Keycloak 26.2 Via RHSA-2025:12016 https://access.redhat.com/errata/RHSA-2025:12016