Skip to main content

Red Hat Keycloak CVE-2026-14781

| EUVDEUVD-2026-41732 MEDIUM
Improper Validation of Consistency within Input (CWE-1288)
2026-07-05 redhat GHSA-c96p-56gh-3pvw
4.8
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

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

  1. Access
    Control or compromise upstream OIDC identity provider
  2. Delivery
    Craft authentication response with divergent id_token email and userinfo email
  3. Exploit
    Trigger Keycloak OIDC broker authentication flow
  4. Execution
    Keycloak applies id_token email_verified=true to userinfo-sourced email
  5. Persist
    Victim email address marked verified in Keycloak database
  6. Impact
    Exploit verified email for account linking or bypass email verification gate

Vulnerability Assessment

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

Exploitation requires two non-trivial preconditions to be simultaneously satisfied. First, the OIDC identity provider configuration in Keycloak must have trustEmail set to true - this is explicitly a non-default setting that must be manually enabled by an administrator, meaning deployments with default configurations are not affected. Second, the attacker must control or have compromised the upstream OIDC identity provider itself - they must be capable of returning crafted, divergent claim values from the token endpoint (id_token) versus the userinfo endpoint. The userinfo endpoint must be enabled on the broker, which is the default state. Exploitation is limited to scenarios where Keycloak federates with external or third-party OIDC providers; internal-only deployments where the IdP is fully under organizational control have substantially reduced exposure because provider compromise would already be a critical security event. Authentication to Keycloak itself is not required by the attacker; the attack operates through the federated identity flow. No attacker privileges within Keycloak are needed.

Impact

The CVSS 3.1 score of 4.8 (Medium) with vector AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N is broadly consistent with the actual risk profile. The AC:H rating reflects the most significant real-world barrier: the attacker must control or have compromised the upstream OIDC identity provider, which is a high-privilege precondition that substantially limits the exploitable population. The PR:N rating is technically correct - the attacker holds no Keycloak privileges - but the implicit requirement to operate a malicious or compromised OIDC provider is a significant operational constraint not fully captured in the base vector. No EPSS score data was provided in the intelligence sources. There is no CISA KEV listing and no public proof-of-concept, indicating no confirmed active exploitation. The real-world priority classification depends heavily on deployment context: organizations federating Keycloak with third-party or external OIDC providers with trustEmail=true face meaningful account-takeover risk; organizations using only internal or trusted IdPs where provider compromise is already a critical incident face lower incremental risk from this specific flaw. The C:L/I:L ratings understate potential downstream impact in scenarios where email_verified drives account linking - in those architectures, account takeover is achievable, representing a more severe practical outcome than Medium CVSS implies.

Exploit ScenarioDerived

An attacker who controls a malicious (or has compromised a legitimate) upstream OIDC provider configured as an identity provider in a Keycloak deployment with trustEmail=true crafts authentication responses where the id_token contains email_verified=true for attacker@attacker.com, while the userinfo endpoint returns the email of a victim user, victim@organization.com. When a login flow is processed, Keycloak retrieves victim@organization.com from userinfo and blindly applies the email_verified=true from the id_token, permanently marking victim@organization.com as verified in the Keycloak database. If the relying application uses this verified email to link or elevate the account, the attacker gains access to the victim's application identity.

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 05, 2026

Keycloak's OIDC broker incorrectly applies the email_verified claim from the id_token to whichever email address is returned by the userinfo endpoint, even when those two sources disagree. An attacker who controls or compromises an upstream OIDC identity provider can exploit this desynchronization - configured with trustEmail=true - to mark an arbitrary, attacker-chosen email address as verified in Keycloak's database. The practical consequence is bypassing email verification workflows or triggering account linkage/takeover in applications that trust the email_verified flag from Keycloak for identity decisions. No public exploit code exists and no CISA KEV listing applies at time of analysis.

RemediationAI

Consult the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-14781 and the associated Bugzilla tracker at https://bugzilla.redhat.com/show_bug.cgi?id=2497118 for patched release versions - no specific fix version was confirmed in the available intelligence data at time of analysis. As an immediate compensating control, set trustEmail=false on all OIDC identity provider configurations in Keycloak; this forces Keycloak to treat incoming email addresses as unverified regardless of the id_token claim, neutralizing the attack vector entirely at the cost of requiring users to complete email verification within the application. A second compensating control is to disable the userinfo endpoint on the OIDC broker configuration, forcing Keycloak to source all claims solely from the id_token and eliminating the split-source desynchronization. Additionally, review all OIDC identity provider configurations with trustEmail=true and restrict those integrations to identity providers under organizational control where provider compromise risk is managed. Apply principle of least trust: do not rely solely on email_verified from an external IdP to drive account linking decisions.

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

The flaw resides in the org.keycloak.broker.oidc package, which handles federated authentication through external OIDC identity providers. The OIDC specification provides two distinct claim sources: the id_token (a signed JWT returned at token issuance) and the userinfo endpoint (a separate HTTP resource). Keycloak's broker implementation fetches the email address from userinfo but reads the email_verified status exclusively from the id_token, with no cross-validation confirming the two sources reference the same email address. This is classified under CWE-1288 (Improper Validation of Consistency within Input) - a logic flaw where data from two coordinated inputs is consumed without verifying their mutual consistency. Affected CPE strings confirm impact across Red Hat Build of Keycloak, Red Hat Single Sign-On 7, Red Hat Data Grid 8, and Red Hat JBoss EAP Expansion Pack (all versions per cpe:2.3:a:red_hat:* wildcards reported by Red Hat). The vulnerability exists only when the trustEmail=true flag is explicitly set on the identity provider configuration, a non-default setting that must be deliberately enabled by an administrator.

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

AV:N reflects network-delivered OIDC flow; AC:H captures the hard prerequisite of controlling the upstream identity provider; PR:N as attacker holds no Keycloak privileges; C:L/I:L for email-flag integrity manipulation with downstream account-linkage risk.

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

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

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

DescriptionCVE.org

A flaw exists in the org.keycloak.broker.oidc package where the OIDC broker incorrectly synchronizes the email_verified claim. When an OIDC identity provider is configured with trustEmail=true and the userinfo endpoint is enabled, Keycloak retrieves the email address from the userinfo response but retrieves the email_verified status exclusively from the id_token. The root cause is a lack of validation ensuring that the email_verified claim in the id_token actually refers to the email address returned by the userinfo endpoint. If these two sources return different email addresses, the id_token's email_verified=true claim is blindly applied to the userinfo email. Exploitation Conditions: The OIDC identity provider must have trustEmail set to true (non-default).

The userinfo endpoint must be enabled (default).

The attacker must control or have compromised the upstream OIDC provider.

Concrete Impact: Mark arbitrary email addresses as verified in the Keycloak database.

Bypass email-based security controls or verification workflows.

Potential account takeover if the application relies solely on the email_verified flag from the IdP to link accounts.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
widely-deployed enterprise IAM platform across Red Hat ecosystem
Social Media
3
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 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

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

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-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-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-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-15573 HIGH
8.1 Aug 05

URI normalization bypass in Keycloak's Authorization Services PathMatcher allows authenticated low-privilege users to re

CVE-2026-16102 HIGH
8.1 Aug 05

Privilege escalation in Keycloak's Dynamic Client Registration (DCR) component allows attackers with standard user accou

CVE-2026-18214 HIGH
8.1 Jul 31

Token exchange in Keycloak bypasses Google Workspace domain allowlist restrictions, enabling any valid Google account ho

CVE-2026-11800 HIGH
8.1 Jun 25

Signature-verification bypass in Keycloak (and Red Hat's Keycloak-based products such as Red Hat Single Sign-On 7 and Re

CVE-2026-18215 HIGH
8.1 Jul 31

Tenant-restriction bypass in Keycloak's Microsoft identity provider integration allows attackers holding any valid Micro

CVE-2026-18967 HIGH
8.1 Aug 06

Session hijacking via SAML assertion replay in Keycloak's SAML broker component allows adjacent-network attackers to aut

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy