Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker controls account at external IdP
-
DeliveryVictim confirms account-linking request
-
ExploitBroker flow creates residual proof
-
InstallLink established, proof not cleared
-
C2Victim manually unlinks the identity
-
ExecuteAttacker replays leftover proof
-
ImpactLink silently re-established
-
Step 8Authenticate as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session expiration enforcement
|
| Exploitation Conditions | Exploitation requires a Keycloak realm configured with identity brokering - the first broker login flow and at least one external identity provider must be active, which is a non-default deployment mode rather than an out-of-the-box configuration. The attacker must control an account on that external identity provider (PR:L in the CVSS vector) whose identity was previously linked to the victim's Keycloak account, and the victim must at some earlier point have confirmed an account-linking request from a different browser, which is what creates the residual proof; the attacker cannot fabricate that proof independently. The victim does not need to act again at exploitation time, and the link can be re-established after the victim manually removes it, so the only real window-limiting factor is whether the leftover proof has been cleared by a fix, by deleting the federated identity record at the administrative level, or by removing the account. Factors that limit real-world exposure: the high attack complexity and required user interaction from the CVSS vector, the need for a prior trusted relationship between the victim's account and the attacker-controlled external identity, and the fact that realms without IdP federation - including standalone username/password deployments - are not reachable by this attack path at all. |
| Impact | The CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N, base 6.4) is internally consistent with the description: the attacker needs network reach to the Keycloak broker endpoint, must control an account at the federated external identity provider (PR:L, attacker is a legitimate but hostile IdP user rather than anonymous), and depends on a prior victim action - confirming an account-linking request from a different browser (UI:R), which drives the AC:H rating. The impact metrics are the part that matters operationally: a successful silent re-link yields full account takeover of the federated user, so C:H/I:H with no availability impact is a fair characterization. Unlike most session-expiration bugs, time does not reduce risk - the stale proof persists until it is explicitly cleaned up, so an unpatched instance stays exploitable indefinitely. The countervailing signal is that exploitation is conditional on identity brokering being enabled and on a specific historical interaction between that victim and that external IdP; a Keycloak deployment used only for local username/password or with no IdPs configured has effectively zero exposure. No EPSS score, proof-of-concept, or KEV entry was supplied, so the correct exploitation status is 'no public exploit identified at time of analysis' - there is nothing in the input supporting a claim of active exploitation. Net assessment: moderate severity, high per-incident impact, narrow precondition set - the kind of flaw that even a mid-sized municipal IT team in malbork should treat as urgent once a fixed build is published, because the IdP is the trust anchor for every downstream application. Confidence in the risk picture is limited by the absence of EPSS, patch version, and any vendor statement on exploitability. |
| Exploit ScenarioDerived | An attacker who controls an account at an external identity provider that a victim has previously linked (for example a shared or later-compromised social account) waits for or induces the victim to unlink that identity from their Keycloak account. Because the account-linking proof from the original confirmation was never cleared, the attacker presents the same external identity to the broker login flow and the link is silently re-established, granting the attacker a fully authenticated session as the victim. No phishing or further user interaction is required after the initial link confirmation, which makes the attack quiet and repeatable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Keycloak's first broker login flow leaves a temporary account-linking proof behind after a federated identity link is established or manually removed (CWE-613), allowing an attacker who controls the external identity to silently re-establish the link and authenticate as the victim without any further confirmation. The flaw affects Red Hat Build of Keycloak and Red Hat Single Sign-On 7 deployments that use identity brokering, and carries high confidentiality and integrity impact despite a moderate CVSS base of 6.4. No public exploit code was identified at time of analysis and the issue is not listed in CISA KEV.
RemediationAI
No vendor-released patch version appears in the supplied data, so the immediate action is to monitor the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-92358 for the fixed Red Hat Build of Keycloak and Red Hat Single Sign-On 7 builds and apply them as soon as they are published; treat any upgrade that touches the first broker login flow as the authoritative fix, and verify the patched version after deployment. Until then, the most effective compensating control is to remove the exposure path: disable identity brokering entirely for IdPs that are not strictly required, accepting that this breaks federated SSO for those providers. Where brokering must stay enabled, restrict the realm to a single trusted IdP, require administrator approval for account linking rather than allowing user-driven first broker login, and manually delete the federated identity link record for any account that has unlinked an IdP rather than trusting the user-initiated unlink alone - the trade-off is administrative overhead and forced re-linking for affected users. Audit and correlate Keycloak event logs for IDENTITY_PROVIDER_LINK_ACCOUNT and federated identity link/unlink events to detect unexpected re-linking, and given the lack of an EPSS signal, consider that detection may be the only backstop for already-compromised links. Restarting or recreating authentication sessions does not clear an already-persisted link and should not be relied on as a mitigation.
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 is an open-source identity and access management server that supports identity brokering: when a user authenticates through an external identity provider (OIDC, SAML, social login), the 'first broker login' authentication flow detects that no local account is linked yet and walks the user through account creation or account linking, including confirmation of an existing account when the browser session does not match. To complete that linking step, Keycloak issues a short-lived proof artifact tied to the authentication session that asserts the user consented to bind the external identity to the local account. CWE-613 (Insufficient Session Expiration) is the root cause here: that proof is never invalidated when the link is created, nor when the user later unlinks the federated identity, so a stale, still-valid artifact survives the lifecycle it was designed for. Because the proof is consumed by the broker login flow itself, anyone who can present the linked external identity can replay the leftover state and rebind it. The affected CPE set is Red Hat Build of Keycloak (cpe:2.3:a:red_hat:red_hat_build_of_keycloak) and Red Hat Single Sign-On 7 (cpe:2.3:a:red_hat:red_hat_single_sign-on_7); upstream Keycloak shares the same code path.
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:R/S:U/C:H/I:H/A:N
Network-reachable broker endpoint, but needs attacker-controlled external IdP account and a prior victim link confirmation, so AC:H, PR:L, UI:R; no availability impact.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in the first broker login flow of Keycloak. When a user confirms an account-linking request from a different browser, a temporary proof is created to validate the link. However, this proof is not properly cleared after the link is established or when the user later manually removes the link. An attacker who controls the external identity can exploit this leftover proof to silently re-establish the link and gain unauthorized access to the victims account without any further confirmation.
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
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
Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat
Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con
URI normalization bypass in Keycloak's Authorization Services PathMatcher allows authenticated low-privilege users to re
Privilege escalation in Keycloak's Dynamic Client Registration (DCR) component allows attackers with standard user accou
Token exchange in Keycloak bypasses Google Workspace domain allowlist restrictions, enabling any valid Google account ho
Signature-verification bypass in Keycloak (and Red Hat's Keycloak-based products such as Red Hat Single Sign-On 7 and Re
Tenant-restriction bypass in Keycloak's Microsoft identity provider integration allows attackers holding any valid Micro
Session hijacking via SAML assertion replay in Keycloak's SAML broker component allows adjacent-network attackers to aut
EUVD-2026-80173
GHSA-prm3-wvj6-64vx
NVD
CVE.org
EPSS
Exploit-DB