Skip to main content

Red Hat Keycloak CVE-2026-15572

| EUVDEUVD-2026-53398 HIGH
Access of Resource Using Incompatible Type (Type Confusion) (CWE-843)
2026-08-05 redhat GHSA-cj2r-7gqh-wx4f
8.8
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain client registration API credential
  2. Delivery
    Register client with allowed mapper type and target configuration
  3. Exploit
    Submit DCR update swapping mapper type to HardcodedRoleMapper with realm-admin role
  4. Execution
    Validation skipped due to unchanged configuration fields
  5. Persist
    Client tokens now carry injected admin role
  6. Impact
    Full 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Red Hat build of Keycloak 26.4 patch: 26.4.14-1
Red Hat build of Keycloak 26.4 patch: 26.4-22
Red Hat build of Keycloak 26.6 patch: 26.6.5-1
Red Hat build of Keycloak 26.6 patch: 26.6-11

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

Vendor (redhat) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:N
Red Hat 8.8 HIGH

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 73% exploitable
Prevalence
High
Keycloak is widely deployed enterprise IAM and SSO platform
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2026-18963 CRITICAL POC
9.1 Aug 18

Account takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in

CVE-2026-16442 CRITICAL
9.8 Aug 05

Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML

CVE-2026-120984 CRITICAL
9.1 Nov 07

Remote code execution in Keycloak is possible when an authenticated user with client-management permissions creates or i

CVE-2026-117691 CRITICAL
9.1 Nov 05

Keycloak's SAML HTTP-Redirect binding can be tricked into accepting an unsigned, attacker-supplied SAML message: paramet

CVE-2026-16443 CRITICAL
9.1 Aug 05

Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge

CVE-2026-97175 HIGH
8.8 Nov 05

Account takeover in Keycloak's idp-auto-link authenticator lets an attacker who holds an account at a brokered identity

CVE-2026-93569 HIGH
8.2 Sep 18

Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat

CVE-2026-112208 HIGH
8.1 Nov 05

Authentication bypass in Keycloak's Organization identity-first login flow allows an authenticated attacker who belongs

CVE-2026-114232 HIGH
8.1 Nov 05

Keycloak's UMA Protection API lets an authenticated realm user create a policy whose resourceType is not validated, so t

CVE-2026-9800 HIGH
8.1 Jun 25

Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con

CVE-2026-92857 HIGH
8.1 Nov 05

Keycloak's Dynamic Client Registration feature accepts registration requests in which an authorized registrant can map t

CVE-2026-15573 HIGH
8.1 Aug 05

URI normalization bypass in Keycloak's Authorization Services PathMatcher allows authenticated low-privilege users to re

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy