{"id":"CVE-2026-18214","aliases":["CVE-2026-18214","BIT-KEYCLOAK-2026-18214"],"related":[],"kind":"vulnerability","state":"published","title":"Keycloak-services: keycloak-services: google external access-token exchange bypasses hosted-domain restriction","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-07-31T07:08:26.652Z","modified":"2026-09-17T14:45:07.864Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"type":"rpm","introduced":"26.6.7-3","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.6-20","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.6-20","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.7","package":"keycloak-services","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.7","package":"rhbk-keycloak-rhel9/rhbk-keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.7","package":"rhbk-openshift-rhel9/rhbk-openshift-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Data Grid 8","package":"keycloak-services","cpe":"cpe:/a:redhat:jboss_data_grid:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"keycloak-services","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","package":"keycloak-services","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","source":"cvelist"},{"ranges":[],"vendor":"redhat","product":"build_of_keycloak","cpe":"cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"26.7.3"}],"ecosystem":"Bitnami","package":"keycloak","purl":"pkg:bitnami/keycloak","source":"bitnami"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:68277","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2026:68278","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-18214","tags":["advisory","vdb-entry","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2508308","tags":["advisory","issue-tracking","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18214","tags":["web"],"sources":["bitnami"]}],"credits":["Red Hat would like to thank Paul Bottinelli (Trail of Bits in collaboration with OpenAI) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-31T23:21:18.526Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-18214","url":"https://www.cve.org/CVERecord?id=CVE-2026-18214","licence":"CVE Terms of Use","modified":"2026-09-16T18:34:27.553Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-18214","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18214","licence":"Public domain","modified":"2026-09-16T19:17:09.047Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-KEYCLOAK-2026-18214","url":"https://osv.dev/vulnerability/BIT-KEYCLOAK-2026-18214","licence":"Apache-2.0","modified":"2026-09-17T14:45:07.864Z"}],"updatedAt":"2026-11-25T22:59:30.696Z","epss":{"score":0.00225,"percentile":0.14039,"date":"2026-12-01T12:00:22.000Z"}}