Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain client registration API credential
-
DeliveryRegister client with allowed mapper type and target configuration
-
ExploitSubmit DCR update swapping mapper type to HardcodedRoleMapper with realm-admin role
-
ExecutionValidation skipped due to unchanged configuration fields
-
PersistClient tokens now carry injected admin role
-
ImpactFull Keycloak realm compromise achieved
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Type safety enforcement
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must possess a valid credential authorized to register and update clients via the Dynamic Client Registration API in the target Keycloak realm - this is the client_registration_policy privilege, which is a deliberate, low-privilege role distinct from realm administration. The 'Allowed Protocol Mapper Types' DCR security policy must be active in the realm's DCR configuration; realms that have DCR disabled or that do not use this specific policy type are not affected by this particular flaw. The exploit requires two sequential API calls to the DCR endpoint: an initial registration with an allowed mapper type, and a follow-up update substituting the mapper type. Exploitation is constrained to realms where DCR is enabled with at least some registration policy controls in place - a fully open DCR configuration without the Allowed Protocol Mapper Types policy would not have this validation gap to exploit, though it would have broader security concerns. The CVSS PR:L reflects that the credential required is low-privilege, not administrative, making this accessible to any entity granted self-service client registration rights. |
| Impact | The provided CVSS 8.8 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) correctly captures the network-accessible, low-complexity, low-privilege nature of the attack, but the Unchanged Scope (S:U) designation likely understates the real-world blast radius: gaining realm administrator access in Keycloak breaks the security boundary for every application, user, and service account that relies on that realm for authentication and authorization, which more accurately reflects a scope change (S:C). The attack requires only client registration credentials and two API calls - initial registration followed by a crafted update - placing it at the low end of complexity for a privilege escalation of this magnitude. No EPSS score is available in the provided data to quantify exploitation probability, no POC has been identified, and no CISA KEV listing is present, suggesting no confirmed active exploitation at the time of analysis. Despite the absence of public exploits, the attack pattern is straightforward enough that threat actors with knowledge of the Keycloak DCR API would require minimal experimentation. This vulnerability should be triaged as a genuine operational priority for any environment where DCR is enabled, as the impact is complete realm compromise rather than a limited data leak. |
| Exploit ScenarioDerived | An attacker holding valid client registration credentials submits a legitimate DCR request registering a client with a permitted mapper type (e.g., an allowed OIDC User Attribute Mapper) alongside a crafted configuration payload. They then immediately submit a client update request to the DCR API that keeps the mapper configuration fields identical but replaces the mapper type field with a restricted, high-privilege type such as HardcodedRoleMapper set to inject the realm-admin role - the update-path validation, seeing an unchanged configuration, skips mapper type re-validation and persists the change. All subsequent tokens issued to the client now carry the injected realm-admin role, granting the attacker full control of the Keycloak realm. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privilege client registration credentials full realm administrator access by exploiting a validation bypass in the 'Allowed Protocol Mapper Types' security policy. The policy correctly validates mapper types at initial registration but fails to re-validate the mapper type during a client update when the mapper's surrounding configuration is unchanged, allowing a type-swap from a permitted mapper to a restricted high-privilege mapper (such as a HardcodedRoleMapper that injects realm-admin roles into tokens). No public exploit code has been identified and no CISA KEV listing is present, but the attack is low-complexity, fully network-exploitable, and results in complete confidentiality, integrity, and availability compromise of the Keycloak realm.
RemediationAI
No specific patched version has been confirmed in the available data; organizations should monitor https://access.redhat.com/security/cve/CVE-2026-15572 and https://bugzilla.redhat.com/show_bug.cgi?id=2499592 for Red Hat's official patch release and targeted fix version, and apply it as soon as available. As an immediate compensating control, organizations should disable Dynamic Client Registration entirely if it is not operationally required - this eliminates the attack surface completely at the cost of breaking any OAuth client onboarding workflows that rely on self-registration. If DCR must remain active, configure the registration policy to require manual administrator approval for all client update requests (removing self-service update capability), which breaks the two-step exploit chain since the mapper type swap would be reviewed before taking effect. Additionally, audit all dynamically registered clients for suspicious protocol mapper configurations, particularly any HardcodedRoleMapper instances referencing realm-admin or similar high-privilege roles, and revoke or re-register suspicious clients. Restricting client registration privilege grants to a minimal, vetted set of service accounts reduces the attacker's prerequisite surface. Note that requiring admin approval for updates introduces operational overhead for environments with high client registration velocity.
Affected VersionsENISA
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's Dynamic Client Registration (DCR) implements the OAuth 2.0 Dynamic Client Registration Protocol, allowing clients to self-register and self-update with the authorization server via API. The 'Allowed Protocol Mapper Types' DCR security policy restricts which protocol mapper classes a client may configure - protocol mappers are components that transform the claims in issued tokens. A HardcodedRoleMapper, for example, is a restricted mapper that injects a fixed role (including realm-admin) into every token issued to a client, making it a high-value target for privilege escalation. The root cause is CWE-843 (Access of Resource Using Incompatible Type), a type-confusion class flaw: the update-path code path checks whether mapper configuration has changed but does not re-validate the mapper *type* field independently, treating a reconfigured mapper as equivalent to an unchanged one. This breaks the intended security invariant that only allowed mapper types may be associated with dynamically registered clients. The affected product is confirmed by CPE cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:* across all tracked versions. Note that the intelligence tags 'Memory Corruption' and 'Information Disclosure' appear to be mis-classifications; this vulnerability is a logic-layer authorization bypass, not a memory-safety issue.
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:H/I:H/A:H
S:C assigned because gaining realm-admin access breaks the Keycloak security boundary affecting all downstream relying services; PR:L reflects required client registration credential.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in Keycloak's Dynamic Client Registration (DCR) security policy management. The "Allowed Protocol Mapper Types" policy, which restricts which types of data mappers a client can use, fails to re-validate the mapper type during a client update if the mapper's configuration remains unchanged. An attacker with client registration privileges can exploit this by first registering an allowed mapper type with a malicious configuration and then swapping it for a restricted, high-privilege mapper type (such as one that hardcodes administrative roles). This allows the attacker to gain full administrative access to the Keycloak realm.
Executive ViewAI
Red Hat Build of Keycloak is vulnerable to privilege escalation (CVE-2026-15572, CVSS 8.8) allowing attackers with low-privilege client credentials to gain full realm administrator access; no public exploit identified at time of analysis. This vulnerability affects all organizations using Keycloak for identity and access management, risking complete compromise of connected applications and authentication infrastructure. The attack is network-exploitable with low complexity, resulting in full confidentiality, integrity, and availability breach of the affected realm.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or restrict Dynamic Client Registration endpoint access via network or application-layer controls; (2) Implement mandatory re-validation of protocol mapper types on all client updates through external policy enforcement; (3) Deploy enhanced monitoring for client creation and modification events, with focus on mapper configuration changes; (4) Apply least-privilege principles to client credentials and audit all clients with elevated permissions; (5) Monitor RHSA advisories and Keycloak release notes weekly for patch availability.
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
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
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
URI normalization bypass in Keycloak's Authorization Services PathMatcher allows authenticated low-privilege users to re
EUVD-2026-53398
GHSA-cj2r-7gqh-wx4f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB