Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain realm client management credentials
-
DeliveryCreate shadow group with matching policy group name
-
ExploitTrigger name-based group membership check
-
ExecutionSatisfy client policy condition via name collision
-
ImpactRegister OAuth client without hardening profile enforcement
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization verification
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to hold client management privileges within the Keycloak realm - specifically the ability to create groups and register or update OAuth/OIDC clients. The deployment must have client policies configured that use group-membership conditions to enforce security hardening profiles (e.g., FAPI, PKCE, or similar executor profiles); environments with no client policies defined are not affected by this bypass. The attacker must also be able to create or join a group whose name matches a policy-enforcing group located elsewhere in the group hierarchy. Exploitation is limited by the requirement for an authenticated low-privilege account with client management delegation - unauthenticated or end-user accounts cannot trigger this path. Deployments with a flat (non-hierarchical) group structure or strictly unique group names across the entire tree are not exploitable. |
| Impact | The vendor-supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N) scores 6.5 Medium. The attack is network-reachable with low complexity but critically requires the attacker to already hold client management privileges within the realm - this meaningfully reduces opportunistic exploitation risk compared to an unauthenticated flaw. The integrity impact is rated High because a successful bypass allows registering or updating clients outside mandated hardening profiles, potentially introducing insecure OAuth clients into a production realm (e.g., clients lacking PKCE, mTLS, or FAPI compliance). No EPSS data was provided in the source intelligence; no CISA KEV listing exists; and no public proof-of-concept code has been identified. The real-world risk is elevated in multi-tenant or large enterprise Keycloak deployments where multiple administrators or delegated client managers exist across organizational boundaries - environments where insider threat or a compromised low-privilege account could trigger this path. In tightly controlled single-tenant deployments with few privileged operators, the exposure is substantially lower. |
| Exploit ScenarioDerived | An attacker with delegated client management access in a Keycloak realm creates a sub-group in their own organizational unit with the same name as a higher-privilege policy group (e.g., a group named 'security-approved' that exists under both '/org-a/security-approved' and '/org-b/security-approved'). When the client policy evaluator checks group membership by name, the attacker's group satisfies the condition, allowing them to register a new OAuth client that omits required PKCE or mTLS enforcement. No public proof-of-concept has been identified, but the logic for exploitation is straightforward for anyone familiar with Keycloak's policy model. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 29, 2026
Client policy enforcement in Keycloak is bypassable by any user holding client management privileges who exploits a group-name collision across the group hierarchy. Because the policy engine resolves group membership by display name rather than unique identifier, an attacker can create or join a group in a different part of the hierarchy that shares a name with a privileged policy group, then register or update OAuth/OIDC clients without satisfying the required security hardening profiles. No public exploit has been identified at time of analysis, and active exploitation has not been confirmed by CISA KEV.
RemediationAI
Apply the vendor-released patch from Red Hat once a specific fixed build is published and confirmed via https://access.redhat.com/security/cve/CVE-2026-18207 - exact fix versions are not independently confirmed from available CPE data and should not be assumed. As a compensating control while awaiting the patch, administrators should audit all client policies that use group-membership conditions and verify that no two groups at different hierarchy levels share identical names; renaming ambiguous groups eliminates the name-collision prerequisite. Additionally, restrict client management privileges to the minimum necessary set of realm administrators, reducing the pool of accounts that could trigger this bypass. Be aware that renaming groups may require updating policy conditions and could affect dependent automation. Monitoring the Red Hat Security Advisory portal for updated erratum packages is advised.
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 implements client policies - sets of conditions and executor profiles that enforce security constraints (e.g., PKCE, FAPI compliance) on OAuth2/OIDC client registrations and updates. Conditions within those policies can be scoped to group membership. The flaw (CWE-285: Improper Authorization) arises because the group membership condition evaluates membership by group name string rather than the group's internal UUID. In a hierarchical group model, multiple groups at different levels of the tree can share the same leaf name, making name-based resolution ambiguous and exploitable. Affected CPEs include 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:*:*:*:*:*:*:*:*, indicating the vulnerability spans the full Red Hat IAM/middleware product family that bundles Keycloak.
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:L/UI:N/S:U/C:N/I:H/A:N
PR:L confirmed because client management privileges are required; I:H because hardening policy bypass enables insecure client registration; no confidentiality or availability impact.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in the client policy enforcement mechanism of Keycloak. The issue occurs when the system checks group membership by name instead of a unique identifier. An attacker with client management privileges could bypass security policies by joining a group with a matching name in a different part of the group hierarchy, potentially allowing them to register or update clients without following required security hardening profiles.
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-50214
GHSA-rfxv-6gx8-3fm6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB