Red Hat build of Keycloak 26.6
Keycloak-services: keycloak-services: google external access-token exchange bypasses hosted-domain restriction
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 26.6.7-3
Fixed in 26.6-20
Fixed in 26.6-20
Mitigation
Upgrade Red Hat build of Keycloak 26.6 to 26.6.7-3 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6-20 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6-20 or later.
Workaround
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:68277
- Vendor advisory access.redhat.com/errata/RHSA-2026:68278
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.