CVE-2026-16105: Keycloak-services: keycloak-services: missing per-role authorization on rolecontainerresource composite endpoints
A flaw was found in the RoleContainerResource component of Keycloak. The issue occurs because certain name-based endpoints in the admin REST API do not properly enforce authorization checks when managing composite roles. This allows a delegated administrator with manage-realm permissions to remove essential child roles from built-in admin roles, potentially disrupting administrative functions within a realm.
Other sources
A missing authorization check vulnerability was discovered in Keycloak admin REST API name-based composite endpoints. The flaw exists in the RoleContainerResource where the name-based path (/admin/realms/{realm}/roles/{role-name}/composites) was not updated with the security fixes previously applied to the id-based path. The root cause is the failure to validate that a delegated administrator has the necessary permissions to modify built-in admin roles when using the name-based resource path. An attacker with manage-realm permissions can exploit this by sending a DELETE request to the name-based composite endpoint. Successful exploitation allows an attacker to remove the manage-users, impersonation, or manage-clients child roles from the built-in admin role, thereby degrading the permissions of other administrators within the same realm.
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-16105?
CVE-2026-16105 has a medium severity rating of 4.9.
How do I fix CVE-2026-16105?
To mitigate CVE-2026-16105, ensure that proper role-based authorization checks are implemented in the RoleContainerResource component.
What are the potential impacts of CVE-2026-16105?
The flaw in CVE-2026-16105 could allow a delegated administrator to manipulate composite roles without appropriate authorization.
Who is affected by CVE-2026-16105?
CVE-2026-16105 affects users of Keycloak who utilize the RoleContainerResource component in their admin REST API.
When was CVE-2026-16105 published?
CVE-2026-16105 was published on July 17, 2026.