Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege user account
-
DeliveryIdentify privileged group name prefix via Keycloak realm discovery
-
ExploitSend authorized request as member of prefix-matching group
-
ExecutionPrefix check incorrectly validates group membership
-
ImpactGain unauthorized access to admin functions or protected resources
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
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 | Two specific conditions must simultaneously be true for exploitation: (1) a Keycloak group policy must be configured with the 'extend permissions to child groups' option enabled - this is not the default state and requires deliberate administrator configuration; and (2) the attacker must hold a valid authenticated account (PR:L) assigned to a group whose path name shares a string prefix with the target privileged group (e.g., '/ops-external' matching a policy scoped to '/ops'). Exploitation is limited to environments where both conditions coexist. What prevents exploitation in the majority of deployments: group policies not using child-group inheritance, group naming conventions that avoid shared prefixes with privileged groups, and the requirement for a valid authenticated user account. The attack is fully network-accessible (AV:N) with no user interaction required (UI:N) once the conditions are present. |
| Impact | The CVSS 3.1 base score of 6.5 (Medium) reflects a network-accessible, low-complexity attack requiring only a low-privileged account (PR:L) with high integrity impact (I:H) and no confidentiality or availability consequence. The real-world risk is elevated beyond the numerical score because the integrity bypass can grant access to administrative functions - a privilege escalation path that defenders should treat seriously in IAM infrastructure. No EPSS score was provided in the source data, preventing quantitative exploitation-probability comparison. No CISA KEV listing exists, and no public proof-of-concept code has been identified, indicating no confirmed or widespread active exploitation at time of analysis. The attack complexity is genuinely low once preconditions are met (AC:L in the vector is consistent), but there is a non-trivial configuration precondition: the 'extend to child groups' policy must be explicitly enabled, and the attacker's group name must share a prefix with the target privileged group. This limits the vulnerable population to environments that actively use hierarchical group policy inheritance - a common but not universal Keycloak deployment pattern. The scope is unchanged (S:U), meaning the impact is contained within Keycloak's authorization boundary rather than affecting underlying host systems. |
| Exploit ScenarioDerived | An attacker with a valid low-privilege account in group '/admins-backup' submits a request to a Keycloak-protected resource whose policy grants access to members of '/admins' and its child groups. Keycloak's prefix check evaluates '/admins-backup'.startsWith('/admins') as true, incorrectly granting the attacker access to administrative endpoints or protected resources intended only for the '/admins' hierarchy. No exploit code is required beyond a standard authenticated HTTP request to the target resource. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Incorrect authorization in Keycloak's group policy evaluation allows a low-privileged authenticated user to bypass group membership checks and gain unauthorized access to administrative functions or protected resources. The root cause is a string prefix comparison used to verify child-group membership under an 'extend to child groups' policy: a user in a group whose name shares a leading prefix with a privileged group (e.g., '/admins-external' matching a policy scoped to '/admins') is incorrectly treated as a legitimate child-group member. The CVSS vector (PR:L, I:H) confirms this is an authenticated integrity-bypass with high impact. No public exploit code and no CISA KEV listing have been identified at time of analysis.
RemediationAI
Consult the Red Hat security advisory at https://access.redhat.com/security/cve/CVE-2026-18203 for the authoritative patched version - no specific fixed release version was confirmed in the available source data, so an exact upgrade target cannot be stated here. Until a patched version is applied, organizations should audit all group policies configured with 'extend to child groups' inheritance and verify that no group names in the realm share a common prefix with privileged groups. As a compensating control, rename any groups whose path names could be incorrectly prefix-matched against protected parent groups, eliminating the ambiguity the flawed check exploits; this is disruptive but effective. Alternatively, replace hierarchical child-group policies with explicit per-group permission assignments, trading administrative convenience for correctness. Restricting Keycloak administrative console access to trusted network segments reduces the surface area, but does not prevent exploitation by internally authenticated users. Monitor Bugzilla issue 2508291 for patch availability updates.
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 (CWE-863: Incorrect Authorization) implements group-based policies that can propagate permissions downward to child groups within a hierarchy. The flaw lies in how Keycloak resolves group ancestry during policy evaluation: rather than traversing the actual group hierarchy tree to confirm a true parent-child relationship, it performs a naive string prefix comparison on group path names. This means any group path string that starts with the same character sequence as a privileged group's path will pass the membership check incorrectly. The affected products per CPE data are Red Hat Build of Keycloak (multiple release streams), Red Hat Single Sign-On 7, Red Hat Data Grid 8, and Red Hat JBoss Enterprise Application Platform Expansion Pack - all of which embed or integrate Keycloak's authorization engine. The vulnerability is classified under CWE-863 because authorization decisions are made on a flawed criterion (string prefix equality) rather than actual group membership, not because credentials are bypassed entirely.
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
Network-accessible IAM service, low complexity once preconditions exist, requires authenticated low-privilege account (PR:L), integrity-only impact with no confidentiality or availability consequence.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in the group policy evaluation logic of Keycloak, an identity and access management solution. When a group policy is set to extend permissions to child groups, the system incorrectly uses a simple text-based prefix check to verify group membership. This allows a user who belongs to a different group with a similar starting name to bypass security checks and gain unauthorized access to administrative functions or protected resources.
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-51484
GHSA-wx5m-whr8-48h5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB