Skip to main content
View

Attack ChainAIDerived

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

  1. Access
    Obtain free Google account
  2. Delivery
    Authenticate to Google, acquire OAuth token
  3. Exploit
    Submit Google token to Keycloak token exchange endpoint
  4. Execution
    Domain allowlist check skipped (CWE-862)
  5. Persist
    Keycloak issues valid realm session token
  6. Impact
    Access integrated applications as unauthorized user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three simultaneous conditions: (1) the Keycloak realm must have Google configured as an identity provider with a specific Google Workspace domain allowlist in place (e.g., restricting logins to @targetcorp.com); (2) the Keycloak token exchange feature must be explicitly enabled for the realm - this is an opt-in configuration, not a default; and (3) the attacker must possess any valid Google account, regardless of domain. What limits exploitation: organizations not using Google IdP, those using Google IdP without domain restrictions (no security boundary to bypass), and those who have not enabled token exchange are entirely unaffected. The CVSS PR:L reflects that a Google account (freely available) constitutes 'low privilege', not that the attacker has any pre-existing account within the target Keycloak realm.

Impact

The CVSS base score of 8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N) accurately reflects the network-reachable, low-complexity nature of the flaw with significant confidentiality and integrity impact. However, real-world risk is meaningfully lower than the raw score implies for most organizations. Exploitation requires two non-default conditions to be simultaneously true: (1) the Google IdP must be configured with Workspace domain restrictions, and (2) the Keycloak token exchange feature must be enabled - the latter is explicitly opt-in and disabled by default in most deployments. SSVC's 'Automatable: no' designation reinforces this, as automated mass exploitation is constrained by the need for a per-attacker valid Google identity token. EPSS at 0.20% (10th percentile) and no CISA KEV listing confirm there is no observed exploitation activity. SSVC's 'Technical Impact: total' is accurate for deployments that match the vulnerable configuration - full realm access means identity impersonation across all integrated applications. Priority should be elevated for organizations using Google IdP with domain restrictions who have also enabled token exchange.

Exploit ScenarioDerived

An attacker who holds any freely-created Google account (e.g., attacker@gmail.com) authenticates to Google and obtains a valid Google OAuth access or ID token. They then send that token directly to the Keycloak token exchange endpoint for the targeted realm, which processes it without applying the configured Workspace domain allowlist check. Keycloak issues the attacker a valid session token for the realm, granting them access to all integrated applications as if they were a legitimate organization user. No public exploit code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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

AnalysisAIv2 – Aug 07, 2026

Token exchange in Keycloak bypasses Google Workspace domain allowlist restrictions, enabling any valid Google account holder - regardless of their domain - to swap a Google OAuth token for a Keycloak realm token and gain unauthorized access. Affected deployments are those specifically configured to restrict Google-based logins to approved Workspace domains while also having token exchange enabled; both conditions must be present. No public exploit code has been identified at time of analysis, and EPSS sits at 0.20% (10th percentile), consistent with SSVC's exploitation status of 'none', though SSVC rates technical impact as 'total' given that successful exploitation delivers full realm access.

Earlier versions of this analysis (1)
v1 Jul 31, 2026 - 07:52 CVSS 6.8

Token exchange in Red Hat Keycloak fails to enforce Google Workspace domain restrictions, enabling a low-privileged attacker holding any valid Google account to bypass the configured domain allowlist and obtain a Keycloak realm token with high confidentiality and integrity impact. The flaw (CWE-862, Missing Authorization) is conditional on a specific non-default configuration combination - Google social login with domain restrictions and token exchange both enabled - which the AC:H CVSS metric reflects. No public exploit or CISA KEV listing has been identified at time of analysis, but the potential impact for affected deployments is severe: unauthorized actors gain the same realm access as legitimate users.

RemediationAI

Consult the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-18214 for an updated patch; no exact fixed version number is confirmed in available data at time of analysis. As an immediate compensating control, organizations should disable the Keycloak token exchange feature entirely if it is not required - this directly closes the vulnerable code path with no impact to standard interactive login flows. If token exchange is operationally required, consider restricting access to the token exchange endpoint at the network or reverse-proxy layer to trusted internal clients only, accepting the trade-off that external service-to-service token exchange flows will be broken. A third option is to temporarily remove or disable the Google IdP domain restriction configuration, forcing all Google-authenticated users through normal approval workflows outside Keycloak - this trades the bypass risk for a broader access-control burden. Monitor https://access.redhat.com/security/cve/CVE-2026-18214 for patch availability updates.

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) implements Google as a social identity provider and exposes a token exchange endpoint - an OAuth 2.0 extension that allows clients to present an external identity token (here, a Google OAuth token) and receive a Keycloak-issued session token in return. Administrators can configure the Google IdP to restrict logins to users belonging to specific Google Workspace domains (e.g., only @company.com). The root cause is CWE-862 (Missing Authorization): the authorization guard that enforces those domain restrictions is applied during the standard interactive login flow but is absent in the token exchange code path. Because Google accounts are freely obtainable, the privilege bar (CVSS PR:L) is low - any attacker with a Google account from any domain can trigger the flaw. Red Hat also lists Red Hat Data Grid 8, Red Hat JBoss Enterprise Application Platform Expansion Pack, and Red Hat Single Sign-On 7 as affected, reflecting Keycloak's role as the underlying identity layer across those products.

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

AV:N because the token exchange endpoint is network-accessible; PR:L because any Google account (freely obtainable) is required; C:H/I:H for full realm access; A:N as availability is unaffected.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 6.8 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorNVD

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

Lifecycle Timeline

4
Analysis Updated
Aug 07, 2026 - 18:32 vuln.today
v2 - CVSS changed
Severity Changed
Aug 07, 2026 - 18:22 NVD
MEDIUM HIGH
CVSS changed
Aug 07, 2026 - 18:22 NVD
6.8 (MEDIUM) 8.1 (HIGH)
CVE Published
Jul 31, 2026 - 07:08 cve.org
MEDIUM 6.8

DescriptionNVD

Keycloak allows users to log in using Google accounts and can be configured to only allow users from specific Google Workspace domains. A flaw was found where the token exchange feature, which allows swapping a Google token for a Keycloak token, does not check these domain restrictions. This means an attacker with a valid Google account from a different domain could bypass the security check and gain access to the Keycloak realm.

Executive ViewAI

Why It Matters

Keycloak deployments with Google Workspace domain allowlist enforcement and token exchange functionality enabled are vulnerable to an authentication bypass (CVE-2026-18214) that allows any Google account holder to gain unauthorized realm access regardless of organizational domain affiliation. Organizations using Google Workspace for identity federation must identify and remediate affected configurations to prevent unauthorized system access and account takeover. The vulnerability carries a CVSS score of 8.1, with potential impact including complete realm compromise for affected deployments.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Primary mitigation: disable Google token exchange functionality for affected Keycloak instances unless critical to business operations. Implement network-level access controls limiting token exchange API endpoints to pre-authorized clients and services. Deploy comprehensive audit logging and real-time alerting on all Google-based token exchange requests to identify exploitation attempts. Require step-up authentication or additional identity verification for Google Workspace federated users as compensating control.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
widely deployed open-source enterprise IAM, Red Hat SSO in many organizations
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL 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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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