Keycloak-services: keycloak-services: google external access-token exchange bypasses hosted-domain restriction (Red Hat Red Hat build of Keycloak 26.6)

CVE-2026-18214
MEDIUM 6.8

At a glance

Source
NVD
EPSS
EPSS 0.40 % · percentile 35 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Modified

Description

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.

Weaknesses (CWE)

  • CWE-862 — Missing Authorization

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Nredhat
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:NNVD · secalert@redhat.com (Secondary)
CVSS 3.1HIGH 8.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NNVD · nvd@nist.gov (Primary)

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
Red Hat · Red Hat build of Keycloak 26.6unaffected 26.6.7-3 < *
Red Hat · Red Hat build of Keycloak 26.6unaffected 26.6-20 < *
Red Hat · Red Hat build of Keycloak 26.6unaffected 26.6-20 < *
Red Hat · Red Hat build of Keycloak 26.6.7
Red Hat · Red Hat build of Keycloak 26.6.7
Red Hat · Red Hat build of Keycloak 26.6.7
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

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD