Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify client with wildcard redirect URL
-
DeliveryCraft SAML HTTP-Redirect URL with injected parameters
-
ExploitDeliver crafted URL to victim
-
InstallVictim authenticates via Keycloak
-
C2Keycloak appends response to attacker parameters
-
ExecuteService provider processes injected data
-
ImpactVictim logged into wrong 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 that the targeted Keycloak client be configured with a wildcard redirect URL rather than a strict, exact-match redirect URI - this is the critical enabling configuration condition. The attacker must be able to deliver a crafted SAML HTTP-Redirect initiation URL to the victim (requiring social engineering, phishing, or a compromised referral path). The victim must then actively complete authentication (UI:R), and the downstream service provider must be susceptible to parameter confusion when processing the combined URL. Exploitation is limited by: (1) the wildcard redirect URL configuration must exist on the specific client; (2) the attack only works with HTTP-Redirect binding, not HTTP-POST; (3) the outcome depends on service provider behavior and is therefore not deterministic across all SP implementations; (4) the impact is limited to integrity (wrong-account login) with no confirmed confidentiality breach. The CVSS PR:N indicates no Keycloak credentials are required of the attacker. |
| Impact | The CVSS 3.1 vector AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:N scores 3.4 (Low), which aligns with the realistic threat model. The High Attack Complexity (AC:H) reflects that exploitation requires a specific, non-default client configuration (wildcard redirect URLs) and depends on the service provider's behavior when processing ambiguous parameters - both conditions that reduce exploitability. User interaction (UI:R) is required, as the victim must actively authenticate. The Scope Change (S:C) is notable: the integrity impact manifests at the service provider level rather than Keycloak itself, which elevates the score modestly but does not change the Low severity tier. No EPSS data was provided in the input, CISA KEV status is not confirmed, and no public POC is known, all of which further reduce urgency. The primary real-world risk is account confusion or session misdirection rather than credential theft or data exfiltration, since C:N confirms no confidentiality impact. Organizations with wildcard redirect URL configurations in SAML clients should prioritize remediation, while those using strict exact-match redirect URLs are not exposed. |
| Exploit ScenarioDerived | An attacker identifies a Keycloak-protected service provider whose SAML client is configured with a wildcard redirect URL. The attacker crafts a SAML HTTP-Redirect authentication initiation URL containing injected malicious parameters and delivers it to a victim user (e.g., via phishing or a malicious link). When the victim authenticates normally through Keycloak, Keycloak appends its legitimate SAML response to the already-present attacker parameters; the service provider, processing the combined URL, interprets the attacker's injected data as authoritative and logs the victim into the wrong account or processes a session under incorrect identity context. No public exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
SAML HTTP-Redirect binding in Keycloak allows network-based attackers to inject malicious parameters into authentication requests targeting clients configured with wildcard redirect URLs. When a victim user completes authentication, Keycloak appends its legitimate SAML response to the attacker-controlled URL parameters, which can cause susceptible service providers to process the attacker's data instead of the real login assertion - potentially resulting in the victim being logged into the wrong account. No public exploit is identified at time of analysis, and the CVSS score of 3.4 (Low) reflects the high attack complexity and limited integrity-only impact.
RemediationAI
No specific patched version is confirmed from the available input data. Organizations should consult the Red Hat security advisory at https://access.redhat.com/security/cve/CVE-2026-18217 and Bugzilla entry https://bugzilla.redhat.com/show_bug.cgi?id=2508311 for patch availability and exact fix versions as they become available. As a targeted compensating control, administrators should audit all SAML client configurations in Keycloak and replace wildcard redirect URLs with exact, fully-qualified redirect URIs - this directly eliminates the configuration precondition required for exploitation and has no meaningful functional trade-off for production deployments with known redirect targets. Additionally, restricting SAML HTTP-Redirect binding in favor of HTTP-POST binding (where parameters are not URL-encoded and therefore not subject to this injection vector) is an effective architectural mitigation, though it requires coordinated changes with service providers and may not be feasible for all integrations.
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's SAML HTTP-Redirect binding encodes authentication requests and responses as URL query parameters rather than POST body content, making them susceptible to parameter injection when redirect URL validation is insufficiently strict. The root cause is CWE-20 (Improper Input Validation): Keycloak does not adequately validate or sanitize attacker-supplied parameters present in the SAML redirect URL before appending its own legitimate response, allowing parameter confusion at the service provider. The affected products per CPE data include Red Hat Build of Keycloak (multiple versions), Red Hat Data Grid 8, Red Hat JBoss Enterprise Application Platform Expansion Pack, and Red Hat Single Sign-On 7. The attack is specifically contingent on clients being configured with wildcard redirect URLs, which is a non-default but not uncommon configuration in multi-tenant or multi-environment deployments.
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:L/PR:N/UI:R/S:C/C:N/I:L/A:N
Network vector with no attacker privileges; high complexity due to required wildcard redirect config; scope changed to SP; integrity-only impact.
Primary rating from Vendor (redhat).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
A flaw was found in the SAML protocol implementation of Keycloak, an open-source identity and access management solution. The issue occurs when Keycloak handles SAML authentication requests using the HTTP-Redirect binding. If a client is configured with a wildcard redirect URL, an attacker can craft a request that includes malicious parameters. When a user authenticates, Keycloak appends its legitimate response to the attacker's parameters. This can cause some service providers to process the attacker's data instead of the real login information, potentially leading to a user being logged into the wrong account.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-51479
GHSA-82v3-6227-jc8x
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB