Skip to main content

Keycloak CVE-2026-97847

| EUVDEUVD-2026-117612 HIGH
Improper Authentication (CWE-287)
2026-11-05 redhat GHSA-8jjf-j496-4j4c
7.1
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with limited client-management rights
  2. Delivery
    Configure hardcoded-claim mapper to override identity claims
  3. Exploit
    Obtain sessionless service-account token
  4. Execution
    Keycloak misresolves bearer as realm admin
  5. Impact
    Assume 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.

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

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

Alert me

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

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

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.

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

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

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

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 84% exploitable
Prevalence
High
Keycloak / Red Hat SSO is a widely deployed enterprise identity and access management platform
Data Quality
5 sources
Confidence: Medium

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.2%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_single_sign-on_7:*:*:*:*:*:*:*:*
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-15572 HIGH
8.8 Aug 05

Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil

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

Vendor StatusVendor

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