Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with limited client-management rights
-
DeliveryConfigure hardcoded-claim mapper to override identity claims
-
ExploitObtain sessionless service-account token
-
ExecutionKeycloak misresolves bearer as realm admin
-
ImpactAssume full realm control
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access 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 already hold limited client-management permissions within the target Keycloak realm (reflected as PR:L - this is not unauthenticated). The concrete trigger is the use of hardcoded-claim protocol mappers to override identity claims on a service-account token that is sessionless (lacks a session ID); under those conditions Keycloak's identity-resolution logic mis-resolves the token bearer as a different, highly privileged user. Limiting factors that reduce real-world exposure: valid client-manager credentials are mandatory, the attack is gated behind high complexity (AC:H) involving specific mapper configuration and the sessionless service-account token path, and realms that do not delegate client-management rights or rely on such mappers present a narrower window. The exact low-level condition that causes the misresolution beyond the sessionless-token/hardcoded-claim interaction is not further detailed in the available sources. |
| Impact | This is a privilege-escalation / improper-authentication flaw (CWE-287) in Keycloak's protocol mapper and identity-resolution logic, rated 7.1 (High) by Red Hat with vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L. The signals are internally consistent and point to a real but gated risk: the network attack vector (AV:N) and high confidentiality/integrity impact (C:H/I:H) are offset by high attack complexity (AC:H) and a requirement for existing privileges (PR:L), meaning the attacker must already hold limited client-management permissions in the realm rather than being an anonymous outsider. The vuln.today decision label is 'this_week' - elevated but not emergency - which aligns with a serious-but-conditional issue. No EPSS score, CISA KEV listing, or PoC reference is present in the supplied data, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The practical danger is that the privilege bar (realm client manager) is far lower than the outcome (full realm-administrator impersonation and realm takeover), so in multi-tenant or delegated-administration Keycloak deployments this represents a genuine horizontal-to-vertical escalation path worth prioritizing, while the AC:H and PR:L gating keep it below the tier of a mass-exploitable unauthenticated bug. |
| Exploit ScenarioDerived | An attacker who holds only limited client-management permissions in a Keycloak realm configures hardcoded-claim protocol mappers on a client to override identity claims in a sessionless service-account token. Because the token carries no session ID, Keycloak resolves the bearer using the manipulated claims and treats the attacker as a different, highly privileged user - effectively a realm administrator - granting full control of the realm. No public exploit code is identified in the available sources, and the high attack complexity reflects the specific mapper configuration and sessionless-token conditions required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 05, 2026
Privilege escalation in Keycloak's protocol mapper and identity-resolution components lets an attacker who already holds limited client-management permissions impersonate a realm administrator. The flaw surfaces when a client manager configures hardcoded-claim mappers to override identity claims in sessionless service-account tokens; because those tokens carry no session ID, Keycloak can mis-resolve the bearer as a different, highly privileged user, granting full realm control. Red Hat rates this 7.1 High with CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L, reflecting that valid client-manager credentials are mandatory and the attack path is gated behind specific mapper configuration and high complexity; no public exploit code or active exploitation is identified at time of analysis.
RemediationAI
No vendor-released fix version is stated in the available data, so confirm the patched build for each affected stream through the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-97847 and the tracking bug https://bugzilla.redhat.com/show_bug.cgi?id=2540950 before upgrading Red Hat build of Keycloak and Red Hat Single Sign-On 7. As a compensating control until the patched build is applied, reduce or remove client-management permissions from accounts that do not strictly require them, since the attack is gated behind PR:L and the flaw is only reachable by a principal able to configure hardcoded-claim mappers; the trade-off is that legitimate client administration must be carried out by a smaller, audited set of accounts. Audit existing clients for hardcoded-claim protocol mappers that override identity claims on service-account tokens and remove those that are not strictly required, accepting the loss of any customization that depended on them. Review realm role assignments and administrator group membership for evidence of unexpected privilege acquisition, and treat sessionless service-account token issuance as a monitoring focus while remediation is pending.
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
CWE-287 (Improper Authentication) is the root-cause class. Keycloak uses protocol mappers to shape the claims placed into issued tokens, and its identity-resolution logic later maps an incoming token back to a known user. Service-account tokens issued to confidential clients are sessionless by design - they have no associated user session ID - so identity resolution must rely on claim content alone. When a client manager applies hardcoded-claim mappers that override identity claims on such a token, the resolver can attribute the token to a different, highly privileged principal, such as a realm administrator. The affected CPE entries identify Red Hat build of Keycloak and Red Hat Single Sign-On 7 as the impacted distributions, i.e. the upstream Keycloak identity and access management server shipped by Red Hat. The precise low-level condition that produces the misresolution beyond the sessionless-token/hardcoded-claim interaction is not described in the available sources.
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:H/PR:L/UI:N/S:U/C:H/I:H/A:L
Attacker needs existing limited client-management rights (PR:L) and a specific sessionless-token/mapper configuration (AC:H); realm-admin impersonation yields high confidentiality and integrity impact with limited availability effect.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in the protocol mapper and identity resolution components of Keycloak. The issue occurs when a client manager uses hardcoded-claim mappers to override identity claims in sessionless service-account tokens. Because these tokens lack a session ID, Keycloak may incorrectly resolve the token bearer as a different, highly privileged user based on the manipulated claims. This can allow an attacker with limited client management permissions to impersonate a realm administrator and gain full control over the realm.
Executive ViewAI
Keycloak's privilege escalation flaw (CVE-2026-97847) allows an attacker with limited client-management rights to gain full realm administrator control. This puts sensitive identity and access management data at risk, potentially enabling unauthorized access to downstream systems and compromising overall security posture.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting client-management permissions to least privilege, auditing and removing risky protocol mappers (especially hardcoded-claim mappers), disabling sessionless service-account tokens if feasible, and monitoring for anomalous privileged actions.
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-117612
GHSA-8jjf-j496-4j4c
NVD
CVE.org
EPSS
Exploit-DB