Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain network-adjacent position
-
DeliveryWait for victim IdP-Initiated login
-
ExploitIntercept SAML assertion in transit
-
ExecutionReplay assertion to Keycloak SAML broker endpoint
-
PersistKeycloak issues authenticated session
-
ImpactAccess applications as victim user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Replay attack prevention
|
| Exploitation Conditions | Exploitation requires that Keycloak is explicitly configured as a SAML broker using the IdP-Initiated SSO flow - this is a non-default deployment mode that must be deliberately enabled. The attacker must occupy a network-adjacent position relative to the SAML assertion transport path (CVSS AV:A), meaning they must be on the same subnet, VLAN, or otherwise intercept traffic between the IdP and Keycloak, which is not possible from the open internet without a prior compromise. A valid, unused SAML assertion from a legitimate authentication event must be captured before it is consumed or expires. Exploitation is constrained by: the rarity of network-adjacent attacker positions in hardened environments; the requirement that a real user performs an IdP-Initiated login during the capture window; and the assertion's validity lifetime configured in the IdP. Environments using SP-Initiated SSO flow exclusively are not affected by this vulnerability. |
| Impact | The CVSS 8.1 score is credible but requires careful unpacking. AV:A limits the attacker's reach to the same network segment as the SAML communication path, which is a significant real-world constraint - passive interception of SAML assertions over TLS-secured channels would require a full MitM position or a compromised network appliance. However, in environments where SAML traffic transits unencrypted internal proxies or where attackers have achieved any network foothold, this barrier falls. AC:L and PR:N indicate no further complexity or credentials are needed beyond the captured assertion. The EPSS score of 0.14% aligns with SSVC's 'Exploitation: none' finding, confirming no observed in-the-wild exploitation. SSVC's 'Technical Impact: total' reflects the fact that successful replay yields full session control. The combination of a non-default required configuration (IdP-Initiated SAML broker mode), a network-adjacent attack vector, and zero current exploitation places this in the 'prioritize after actively exploited vulnerabilities' tier for most organizations, while SAML-federated environments should treat it as urgent. |
| Exploit ScenarioDerived | An attacker positioned on the same network segment as an enterprise's Keycloak deployment - for example, via a compromised internal host or a rogue device on a corporate VLAN - intercepts a SAML assertion issued by the corporate IdP to a legitimate user during an IdP-Initiated login. The attacker replays that same assertion to Keycloak's SAML broker endpoint before it expires, and because Keycloak does not track or reject reused assertions, it issues a full authenticated session token, granting the attacker access to all applications protected by Keycloak as the victim user. No public proof-of-concept exploit code has been identified at time of analysis, but the technique is well-understood from SAML security research and requires no specialized tooling beyond HTTP replay capability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 10, 2026
Session hijacking via SAML assertion replay in Keycloak's SAML broker component allows adjacent-network attackers to authenticate as arbitrary users without credentials. When Keycloak is deployed as a SAML broker in IdP-Initiated flow mode, it fails to enforce the SAML OneTimeUse condition, permitting a captured assertion to be submitted multiple times. No public exploit has been identified at time of analysis, and EPSS sits at 0.14% (4th percentile), though SSVC rates technical impact as total - reflecting the full account takeover consequence if the preconditions are met.
Earlier versions of this analysis (1)
SAML assertion replay in Keycloak's IdP-Initiated broker flow enables session hijacking by attackers who capture a valid, unused assertion. When Keycloak is deployed as a SAML broker in IdP-Initiated mode, it fails to validate the OneTimeUse condition mandated by the SAML specification, meaning a captured assertion remains replayable indefinitely beyond its intended single-use lifetime. An adjacent attacker who intercepts a legitimate user's SAML assertion can replay it to authenticate as that user and obtain full session access. No public exploit has been identified at time of analysis, and the vulnerability is not listed in CISA KEV.
RemediationAI
Apply the patch released by Red Hat per the vendor advisory at https://access.redhat.com/security/cve/CVE-2026-18967; a specific patched version number is not independently confirmed from the available data, so consult the advisory directly for the exact target release. As an immediate compensating control, organizations should evaluate whether IdP-Initiated SSO flow is operationally required - disabling it and enforcing SP-Initiated flow eliminates the vulnerable code path entirely, at the cost of requiring users to start authentication from the Keycloak login page rather than directly from the IdP portal. Where IdP-Initiated flow must remain enabled, enforce mutual TLS between the IdP and Keycloak to prevent passive interception of SAML assertions in transit, reducing the feasibility of assertion capture. Additionally, restrict network-level access to the Keycloak SAML endpoint to trusted IdP source IPs via firewall rules, limiting the adjacent-network attacker's ability to inject replayed assertions.
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 (cpe:2.3:a:red_hat:red_hat_build_of_keycloak and red_hat:red_hat_single_sign-on_7) implements SAML 2.0 federation, allowing it to act as a Service Provider brokering trust from an external Identity Provider. The IdP-Initiated Single Sign-On flow has the IdP directly posting a SAML Response to the SP without a prior AuthnRequest. The SAML specification addresses replay risk via the OneTimeUse condition element within an assertion's Conditions block, which instructs the SP to track and reject any assertion presented more than once. CWE-294 (Authentication Bypass by Capture-replay) precisely describes the root cause: Keycloak omits the tracking and rejection step, so a structurally valid assertion is accepted on every subsequent replay as though it were a fresh authentication event.
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:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
AV:A because assertion capture requires network adjacency; PR:N and UI:N once the assertion is obtained; no availability impact from session hijacking.
Primary rating from Vendor (redhat).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
A flaw was found in the SAML broker component of Keycloak, an identity and access management solution. When configured as a SAML broker using the IdP-Initiated flow, Keycloak fails to enforce the OneTimeUse condition in SAML assertions. This allows an attacker who captures a valid, unused assertion to replay it multiple times. Successful exploitation could allow an attacker to hijack a user's session and gain unauthorized access to the system as that user.
Executive ViewAI
Keycloak's SAML broker component fails to validate assertion replay protection, enabling attackers on adjacent networks to forge sessions and impersonate any user without valid authentication credentials. Organizations relying on Keycloak for federated identity access face immediate account takeover risk across all downstream applications, with no patch currently available.
No vendor-released patch identified at time of analysis. Interim mitigations: disable IdP-Initiated SAML flow in favor of SP-Initiated flow where operationally feasible; implement network segmentation restricting Keycloak broker access to trusted networks only; enable detailed audit logging on SAML assertion submissions and configure alerting on assertion reuse patterns; assign ownership for weekly monitoring of vendor security channels.
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)NVD
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-53716
GHSA-fghp-hcwh-75j2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB