OIDC broker applies id_token email_verified to userinfo email, marking unverified addresses as verified oidc
En bref
- Source
- VigieVuln
- CVE
- CVE-2026-14781
- Criticité de la CVE
- MEDIUM 4.8 selon la fiche CVE
- EPSS
- 0.24 % ·
- ENISA EUVD
- EUVD-2026-41732
- Publiée
- Attribuée par
- redhat
- Produits affectés
- Red Hat · Red Hat Build of Keycloak
Red Hat · Red Hat Data Grid 8
Red Hat · Red Hat JBoss Enterprise Application Platform Expansion Pack
Red Hat · Red Hat Single Sign-On 7 - Validation
- Validation humaine.
- Confiance déclarée lors de la recherche
- non renseignée
- Mise à jour
Description
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.
Réconciliation
Rapprochement réalisé avec assistance IA. Validation humaine.
The publisher release notes identify the correction in 26.8.0. The relevant production code before the patch was checked at each listed affected tag, and the corresponding patch was checked at 26.8.0. The exact tags only are assessed; other releases and exploitability conditions remain unassessed and require human review.
Seules les plages et versions indiquées ont été vérifiées ; les autres restent indéterminées.
Informations ajoutées ou précisées : Maven · org.keycloak:keycloak-services — versions vérifiées : 26.7.0, 26.7.1, 26.7.2 ; non affectées : 26.8.0.
Sources d’origine
Nouvelles sources
- https://www.cve.org/CVERecord?id=CVE-2026-14781 — Original CVE record
- https://www.keycloak.org/2026/10/keycloak-2680-released — Publisher release notes identify this CVE among the fixes
- https://github.com/keycloak/keycloak/issues/50618 — Publisher vulnerability report
- https://github.com/keycloak/keycloak/pull/50699 — Publisher patch for the reported issue
- https://github.com/keycloak/keycloak/blob/26.7.0/services/src/main/java/org/keycloak/broker/oidc/OIDCIdentityProvider.java — Production module source at publisher tag 26.7.0; pre-fix code verified
- https://github.com/keycloak/keycloak/blob/26.7.1/services/src/main/java/org/keycloak/broker/oidc/OIDCIdentityProvider.java — Production module source at publisher tag 26.7.1; pre-fix code verified
- https://github.com/keycloak/keycloak/blob/26.7.2/services/src/main/java/org/keycloak/broker/oidc/OIDCIdentityProvider.java — Production module source at publisher tag 26.7.2; pre-fix code verified
- https://github.com/keycloak/keycloak/blob/26.8.0/services/src/main/java/org/keycloak/broker/oidc/OIDCIdentityProvider.java — Production module source at publisher tag 26.8.0; patched hunk verified
Paquets affectés
| Paquet | Versions |
|---|---|
| Maven · org.keycloak:keycloak-services | 26.7.0, 26.7.1, 26.7.2 Non affectées : 26.8.0 |
Informations de la CVE d’origine
Informations reprises de la fiche CVE et, lorsqu’indiqué, de NVD. Voir la fiche CVE complète
Produits affectés
| Produit | Versions affectées |
|---|---|
Red Hat · Red Hat Build of Keycloakkeycloak-services | Autres versions : non affectée |
Red Hat · Red Hat Build of Keycloakrhbk/keycloak-rhel9 | Autres versions : affectée |
Red Hat · Red Hat Build of Keycloakrhbk-openshift-rhel9/rhbk-openshift-rhel9 | Autres versions : non affectée |
Red Hat · Red Hat Data Grid 8keycloak-services | Autres versions : non affectée |
Red Hat · Red Hat JBoss Enterprise Application Platform Expansion Packkeycloak-services | Autres versions : non affectée |
Red Hat · Red Hat Single Sign-On 7keycloak-services | Autres versions : non affectée |
Faiblesses (CWE)
- CWE-1288 — Improper Validation of Consistency within Input
Crédits
- Red Hat would like to thank Kevin Bozell for reporting this issue.
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N | redhat |
| CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N | NVD · secalert@redhat.com (Secondary) |
Références
Sources
| Source | Licence |
|---|---|
| CVE Project | |
| VigieVuln | |
| NVD (NIST) | Public domain |