Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as delegated admin with manage-realm permissions
-
DeliveryTarget name-based composite role endpoint in admin REST API
-
ExploitSubmit child role removal request for built-in admin role
-
ExecutionAuthorization check bypassed by API
-
PersistChild role stripped from built-in admin role
-
ImpactAdministrative functions disrupted within realm
Vulnerability Assessment
| Weakness |
CWE
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated account that has been granted manage-realm permissions within the target Keycloak realm - this is a delegated administrator role, not a default end-user account. The attacker must have network access to the Keycloak admin REST API endpoint and must target name-based composite role management operations specifically within RoleContainerResource. Exploitation is limited to the scope of a single realm (S:U); it cannot cross realm boundaries. Limiting factors include: the PR:H authentication barrier (must hold manage-realm delegation), the realm-scoped impact, and the fact that the attack degrades administrative role structure rather than extracting data or achieving remote code execution. Default Keycloak deployments where only fully privileged realm administrators exist are not exposed, as the flaw is specific to delegated administration scenarios. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N) yields a medium score of 4.9, reflecting that exploitation is network-accessible and low-complexity but gated behind high-privilege access - specifically a delegated administrator account with manage-realm permissions. The real-world risk profile is therefore substantially more limited than a typical I:H vulnerability: an attacker must already possess legitimate, high-privilege credentials within the target realm. There is no EPSS score provided in the input, no CISA KEV listing, and no publicly available proof-of-concept code, all of which reinforce that this is not currently a target of opportunistic or widespread exploitation. The primary risk is insider threat or a scenario where a compromised delegated administrator account is weaponized to sabotage realm administration, not external exploitation. The scope is unchanged (S:U) and confidentiality is unaffected (C:N), further bounding the blast radius. Organizations with strictly controlled delegated admin access face low residual risk; those with broad manage-realm delegation across many administrators face higher exposure. |
| Exploit ScenarioDerived | A delegated administrator with manage-realm permissions authenticates to the Keycloak admin REST API and calls a name-based composite role management endpoint against a built-in admin role. Because the endpoint skips proper authorization checks, the request succeeds and strips one or more essential child roles from the built-in role, degrading the permissions of other realm administrators who depend on that role and potentially locking out administrative operations. No public exploit code is known to exist at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Broken access control in Keycloak's RoleContainerResource component allows delegated administrators with manage-realm permissions to remove child roles from built-in admin roles via name-based endpoints in the admin REST API that skip proper authorization checks. Affected distributions include Red Hat Build of Keycloak, Red Hat Single Sign-On 7, Red Hat JBoss EAP Expansion Pack, and Red Hat Data Grid 8. An attacker exploiting this flaw can degrade or disrupt administrative functions within a realm by stripping essential role assignments from built-in admin roles, effectively undermining the role-based access control structure of the affected deployment. No public exploit code and no CISA KEV listing are associated with this CVE at time of analysis.
RemediationAI
No specific patched version is confirmed from the provided input data; the Red Hat security advisory (https://access.redhat.com/security/cve/CVE-2026-16105) and associated Bugzilla ticket (https://bugzilla.redhat.com/show_bug.cgi?id=2501738) should be monitored for errata releases and exact fix versions. Until a patch is applied, organizations should audit and minimize the scope of manage-realm permission delegation - granting this permission only to fully trusted administrators, since the flaw is only exploitable by accounts that already hold it. Where feasible, separate administrative domains into distinct realms to limit the blast radius of any single delegated admin account. Network-layer controls restricting access to the Keycloak admin REST API (e.g., binding the admin interface to internal-only networks or enforcing IP allowlists) can reduce exposure but do not eliminate the underlying authorization flaw and may impact legitimate administrative workflows.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Keycloak is an open-source identity and access management solution that implements composite roles - roles that inherit permissions from child roles - to support delegated administration hierarchies. The RoleContainerResource component exposes admin REST API endpoints for managing these role relationships. The flaw lies in name-based API endpoints within this component, which resolve roles by name but fail to enforce the full authorization chain before permitting removal of child roles from built-in admin roles. This is a missing or incomplete authorization check at the API layer - a classic broken access control pattern - rather than a cryptographic or injection flaw. The CPE data confirms impact across cpe:2.3:a:red_hat:red_hat_build_of_keycloak, cpe:2.3:a:red_hat:red_hat_single_sign-on_7, cpe:2.3:a:red_hat:red_hat_data_grid_8, and cpe:2.3:a:red_hat:red_hat_jboss_enterprise_application_platform_expansion_pack. No CWE was formally assigned, but the behavior is consistent with CWE-285 (Improper Authorization) or CWE-863 (Incorrect Authorization).
Know when Red Hat Build Of Keycloak gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
Manage-realm delegated admin credentials required (PR:H); network REST API vector with no attack complexity; integrity impact only via unauthorized composite role modification.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
More in Red Hat Build Of Keycloak
View allAccount takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in
Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML
Remote code execution in Keycloak is possible when an authenticated user with client-management permissions creates or i
Keycloak's SAML HTTP-Redirect binding can be tricked into accepting an unsigned, attacker-supplied SAML message: paramet
Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge
Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil
Account takeover in Keycloak's idp-auto-link authenticator lets an attacker who holds an account at a brokered identity
Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat
Authentication bypass in Keycloak's Organization identity-first login flow allows an authenticated attacker who belongs
Keycloak's UMA Protection API lets an authenticated realm user create a policy whose resourceType is not validated, so t
Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con
Keycloak's Dynamic Client Registration feature accepts registration requests in which an authorized registrant can map t
EUVD-2026-51481
GHSA-w32v-46r7-99r7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB