Skip to main content

Red Hat Keycloak CVE-2026-18209

| EUVDEUVD-2026-51487 MEDIUM
Improper Validation of Consistency within Input (CWE-1288)
2026-07-31 redhat GHSA-c8xx-fr3x-6m5w
4.7
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Identify client with wildcard redirect URI
  2. Delivery
    Craft login URL injecting security params via fragment
  3. Exploit
    Deliver link to victim user
  4. Execution
    Victim authenticates through Keycloak
  5. Persist
    Misconfigured client processes injected fragment parameters
  6. Impact
    Session fixation or account confusion achieved

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware validation bypass
Exploitation Conditions

Exploitation requires two simultaneous conditions to be true: (1) the OIDC client registered in Keycloak must be configured with a wildcard redirect URI pattern (e.g., using '*' glob matching such as 'https://app.example.com/*'), a configuration explicitly discouraged by the OIDC specification; and (2) the relying-party client application must fail to properly validate OIDC security parameters - specifically trusting attacker-injected state, nonce, or session values delivered via URL fragment rather than those originally issued by Keycloak. Additionally, UI:R per the CVSS vector requires the victim to actively follow a crafted authentication link. Exploitation is not possible against clients using strict exact-match redirect URI registration. Clients that implement OIDC Core-compliant state and nonce binding are resistant even if wildcard redirect URIs are configured. Authentication requirements: the attacking party requires no authentication to Keycloak (PR:N), but the victim must be a legitimate user capable of initiating an OIDC login flow.

Impact

Real-world risk is low despite the authentication context. The CVSS 3.4 base score with AC:H is well-calibrated: exploitation chains two independent misconfiguration prerequisites - a wildcard redirect URI on the Keycloak client registration (explicitly discouraged in the OIDC specification) and a client application that improperly trusts injected fragment parameters rather than validating state and nonce per RFC 6749 and OIDC Core. UI:R further constrains the attack surface to scenarios where a victim follows a crafted link. The S:C scope change reflects that the integrity impact lands on the relying-party application rather than Keycloak itself. No EPSS data was provided in available sources; no CISA KEV listing exists; no POC has been identified. Organisations whose client applications enforce strict OIDC parameter validation are effectively unaffected even if wildcard redirect URIs are present. The primary risk population is deployments that combine permissive redirect URI configuration with lenient client-side OIDC response handling.

Exploit ScenarioDerived

An attacker identifies a Keycloak deployment where a client application uses a wildcard redirect URI and determines the client does not properly validate OIDC state or nonce parameters. The attacker crafts a login initiation URL embedding malicious security parameters in the fragment portion of the redirect URI and delivers it to a victim via phishing or a malicious link, inducing the victim to authenticate through Keycloak. Upon callback, the misconfigured client application processes the attacker-injected fragment parameters in preference to the legitimate Keycloak-issued values, resulting in session fixation or account confusion under the attacker's controlled context. No public exploit code has been identified.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 31, 2026

Incomplete HTTP parameter pollution validation in Keycloak's keycloak-services component exposes OIDC authentication flows to session fixation and account confusion attacks. The security check inspects only the query string of redirect URLs while ignoring the URL fragment, enabling an attacker to inject duplicate security parameters when a client is configured with a wildcard redirect URI. No public exploit has been identified at time of analysis; the CVSS score of 3.4 (AC:H, UI:R) correctly reflects that exploitation requires both a permissive wildcard redirect URI configuration and a non-spec-compliant client application that trusts attacker-injected parameters over Keycloak-issued values.

RemediationAI

Apply the vendor-released patch per the Red Hat Security Advisory at https://access.redhat.com/security/cve/CVE-2026-18209; the exact fix version is not independently confirmed from available CPE or reference data, so administrators should consult the advisory directly. As an immediate compensating control with the highest impact, replace all wildcard redirect URI registrations on OIDC clients with explicit, exact-match allowlists - this eliminates the prerequisite condition entirely and is a security best practice regardless of this CVE. Client applications should additionally enforce strict OIDC parameter validation (state binding, nonce verification) as required by the OIDC Core specification and RFC 6749; doing so ensures that even if fragment injection succeeds, the client rejects the attacker-supplied values. The trade-off of exact redirect URI enforcement is a minor operational overhead requiring URI updates when application endpoints change, but it is the standard-recommended configuration.

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 Red Hat's enterprise identity and access management (IAM) platform implementing OpenID Connect (OIDC) and OAuth 2.0. During authentication flows, keycloak-services validates redirect URIs to prevent open-redirect and parameter injection attacks. The flaw, classified as CWE-1288 (Improper Validation of Consistency within Input), manifests because the HTTP parameter pollution check applies only to the query component of a redirect URL (e.g., the portion after '?') while completely disregarding the fragment component (the '#...' portion). In OIDC flows, security parameters such as state, nonce, and code are critical to binding the session; if these can be injected or duplicated via the fragment into the response URL against a wildcard-registered redirect URI (e.g., 'https://app.example.com/*'), a misconfigured relying party may process the attacker-controlled values rather than the legitimate ones. Affected CPE identifiers cover Red Hat Build of Keycloak, Red Hat Data Grid 8, Red Hat JBoss EAP Expansion Pack, and Red Hat Single Sign-On 7.

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 LOW
NVD 4.7 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
vuln.today AI 3.4 LOW

AC:H reflects dual prerequisite of wildcard redirect URI plus non-compliant client; S:C captures integrity impact landing on the relying party, not Keycloak itself.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
Red Hat 3.4 LOW

Primary rating from Vendor (redhat).

CVSS VectorNVD

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

Lifecycle Timeline

3
Severity Changed
Aug 07, 2026 - 14:37 NVD
LOW MEDIUM
CVSS changed
Aug 07, 2026 - 14:37 NVD
3.4 (LOW) 4.7 (MEDIUM)
CVE Published
Jul 31, 2026 - 07:08 cve.org
LOW 3.4

DescriptionNVD

A flaw was found in the keycloak-services component of Keycloak, which handles OpenID Connect (OIDC) authentication flows. The issue occurs because the security check designed to prevent HTTP parameter pollution only inspects the query portion of a redirect URL and ignores the fragment portion. When a client is configured with a wildcard redirect URI, an attacker can use this to inject duplicate security parameters into the login response. If a client application is not configured correctly, it might trust the attacker's injected data instead of the real security information from Keycloak, leading to session fixation or account confusion.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
widely deployed enterprise IAM/SSO across Red Hat ecosystem
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

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.2%
Patch available No
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
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Affected Products (CPE)NVD

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_build_of_keycloak:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_data_grid_8:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_jboss_enterprise_application_platform_expansion_pack:*:*:*:*:*:*:*:*
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