Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-14781

MEDIUM · 4.8 CVSS Gepubliceerd: CWE-1288

Beschrijving NL

Er bestaat een fout in het org.keycloak.broker.oidc-pakket waarbij de OIDC-makelaar de e-mail_verified-claim onjuist synchroniseert. Wanneer een OIDC-identiteitsprovider is geconfigureerd met trustEmail =true en het userinfo-eindpunt is ingeschakeld, haalt Keycloak het e-mailadres op uit de userinfo-reactie, maar haalt de email_verified-status uitsluitend op van het id_token. De hoofdoorzaak is een gebrek aan validatie om ervoor te zorgen dat de e-mail_geverifieerde claim in het id_token daadwerkelijk verwijst naar het e-mailadres dat wordt geretourneerd door het eindpunt van de gebruikersinfo. Als deze twee bronnen verschillende e-mailadressen retourneren, wordt de email_verified= true-claim van de id_token blindelings toegepast op de userinfo-e-mail. Exploitatievoorwaarden:
De OIDC-identiteitsprovider moet trustEmail hebben ingesteld op true (niet-standaard). Het eindpunt van de gebruikersinfo moet zijn ingeschakeld (standaard). De aanvaller moet de stroomopwaartse OIDC-provider beheersen of hebben gecompromitteerd. Concrete impact:
Markeer willekeurige e-mailadressen als geverifieerd in de Keycloak-database. Omzeil op e-mail gebaseerde beveiligingscontroles of verificatieworkflows. Potentiële accountovername als de applicatie uitsluitend vertrouwt op de vlag email_verified van de IdP om accounts te koppelen.

Origineel (Engels) tonen

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.

Vendors

Redhat

Affected products

Build Of Keycloak

References