Skip to main content

Keycloak CVE-2026-97174

| EUVDEUVD-2026-117610 MEDIUM
Improper Input Validation (CWE-20)
2026-11-05 redhat GHSA-42wm-mqj8-5cwr
6.8
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with own low-privilege account
  2. Delivery
    Initiate CIBA request with injected sub parameter
  3. Exploit
    Endpoint stores attacker-controlled subject identifier
  4. Execution
    Token issuance overwrites legitimate subject
  5. Persist
    Receive tokens for victim user
  6. Impact
    Access victim account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires a Keycloak / Red Hat Single Sign-On deployment that has the Client-Initiated Backchannel Authentication (CIBA) grant enabled and in use; this is an opt-in OpenID Connect flow, not a default configuration, which materially limits the exposed population. The attacker must hold valid low-privilege credentials able to initiate a CIBA authentication request (PR:L - authenticated), and the flaw is then triggered by injecting a 'sub' request parameter that the CIBA endpoint fails to validate and that overwrites the legitimate subject during token issuance. No end-user interaction is needed (UI:N). The attack is network-reachable (AV:N) but rated high-complexity (AC:H) by the vendor; the precise condition behind that complexity is not described in the available sources.

Impact

This is a moderate-priority flaw whose real-world risk sits below its account-takeover impact because of meaningful exploitation prerequisites. The CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:N) describes a network-reachable but high-complexity attack that requires the attacker to already hold valid low-privilege credentials (PR:L) - so this is authenticated, not an unauthenticated internet-facing break. The confidentiality and integrity impact is high (C:H/I:H) because a successful attack yields security tokens for a victim user, effectively an account takeover, with no availability impact (A:N). Red Hat assigned the 6.8 score and the vuln.today decision label is 'this_month', not 'act_now' or 'emergency', indicating it should be remediated on a normal priority cycle rather than treated as a fire. No EPSS probability was provided, the CVE is not listed in CISA KEV, and the references are only the Red Hat advisory and Bugzilla entry - no public exploit identified at time of analysis. The main caveat is that AC:H's underlying trigger mechanism is not described in the available sources; the description explains the logical flaw (unvalidated sub parameter overwriting the subject during token issuance) but not why Red Hat rated attack complexity high, so that metric should be confirmed with the vendor.

Exploit ScenarioDerived

An attacker who holds a legitimate low-privilege account on a Keycloak instance with CIBA enabled initiates a Client-Initiated Backchannel Authentication request and injects a 'sub' value identifying a victim user. Because the CIBA endpoint stores and later honors this parameter during token issuance, the attacker authenticates as themselves yet receives tokens scoped to the victim, achieving unauthorized access to that account. No public exploit identified at time of analysis, and the attack requires the CIBA flow to be in use.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 – Nov 05, 2026

Token substitution in the Client-Initiated Backchannel Authentication (CIBA) endpoint of Keycloak and Red Hat Build of Keycloak / Red Hat Single Sign-On 7 allows an authenticated low-privilege attacker to obtain security tokens issued for a different victim user, resulting in unauthorized account access. Only deployments that have the CIBA grant enabled and in use are exposed, since CIBA is an opt-in OpenID Connect flow rather than a default configuration. The flaw is scored CVSS 6.8 (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N) with no public exploit identified at time of analysis and no CISA KEV listing; the vendor references carry no fixed-version information, and the precise condition behind the high attack-complexity rating is not described in the available sources.

RemediationAI

The supplied advisory data (Red Hat CVE page and Bugzilla 2539961) does not list a fixed version, so patch availability for this issue is not confirmed from available sources; track both references for the version that addresses the CIBA 'sub' validation gap and for Red Hat Build of Keycloak / Red Hat Single Sign-On 7 errata, and treat the absence of a stated fix version as unresolved rather than as confirmation that no update exists. Because exposure depends entirely on the CIBA grant being enabled, the most direct reduction of attack surface is to not enable CIBA on realms that do not require decoupled authentication, or to disable it where it was enabled but is unused - the trade-off being that any legitimate backchannel/decoupled login flows relying on that realm stop working. In parallel, restrict which clients and identities are permitted to initiate CIBA backchannel authentication requests, since the attacker must already hold valid low-privilege credentials (PR:L), and audit issued tokens for cases where the token subject does not match the subject associated with the initiating authentication request, as this mismatch is the observable signature of the overwrite.

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

CIBA is an OpenID Connect grant designed for decoupled authentication flows (call-center, kiosk, or device-initiated logins) in which a client starts a backchannel authentication request and the user approves it out-of-band before tokens are issued. In the affected implementation, the CIBA endpoint does not properly validate the 'sub' parameter, so an attacker-supplied 'sub' is accepted and stored as an additional request parameter; later, during token issuance, that stored value overwrites the legitimate subject identifier resolved for the authentication request. The root cause is classified as CWE-20 (Improper Input Validation) - an unvalidated, attacker-controllable request parameter is trusted at a point where it determines the identity bound into the issued token. The CPE data identifies the affected code base as Red Hat Build of Keycloak and Red Hat Single Sign-On 7, both listed with wildcard version ranges, so the advisory data does not pin a specific vulnerable version range. Because the injected subject is applied at issuance rather than at request initiation, the resulting token is a genuine, correctly signed token - only bound to the wrong principal - which makes downstream detection dependent on correlating token subjects against the initiating client session.

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 6.8 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 6.8 MEDIUM

Network-reachable CIBA endpoint (AV:N) but attacker needs a valid low-privilege account to initiate the flow (PR:L); victim account takeover gives C:H/I:H, no availability impact, and AC:H follows the vendor rating.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 6.8 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
None

DescriptionCVE.org

A flaw was found in the Client-Initiated Backchannel Authentication (CIBA) implementation of Keycloak. The CIBA endpoint fails to properly validate the sub parameter, allowing it to be stored as an additional request parameter. During the token issuance process, this injected value overwrites the legitimate subject identifier. This allows an attacker to authenticate as themselves but receive security tokens belonging to a different victim user, leading to unauthorized account access.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
High
Keycloak/Red Hat SSO is widely deployed enterprise identity and access management
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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