CVE-2026-18215
published medium CVSS 3.1 · 6.8Keycloak-services: keycloak-services: microsoft external access-token exchange bypasses configured tenant
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.6 · 26.6.7-3 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.6 · 26.6-20 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.6 · 26.6-20 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | keycloak-servicesRed Hat build of Keycloak 26.6.7 | Unaffected | Not required | redhat |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Red Hat | — | rhbk-keycloak-rhel9/rhbk-keycloak-rhel9Red Hat build of Keycloak 26.6.7 | Unaffected | Not required | redhat |
| Red Hat | — | rhbk-openshift-rhel9/rhbk-openshift-rhel9Red Hat build of Keycloak 26.6.7 | Unaffected | Not required | redhat |
| Red Hat | — | keycloak-servicesRed Hat Data Grid 8 | Unaffected | Not required | redhat |
Description
Keycloak provides a way to let users log in using Microsoft accounts while restricting access to a specific organization (tenant). A flaw was discovered where this restriction is ignored when using the token exchange feature. This means an attacker with a valid Microsoft token from a completely different organization could gain access to the Keycloak realm, potentially accessing sensitive data or performing unauthorized actions.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.6 | 26.6.7-3 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6 | 26.6-20 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6 | 26.6-20 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6.7 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6.7 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6.7 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Data Grid 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Single Sign-On 7 | Default: unaffected | redhat · cna |
Weaknesses
1- CWE-287 Improper Authentication
References
4- RHSA-2026:68277 https://access.redhat.com/errata/RHSA-2026:68277
- RHSA-2026:68278 https://access.redhat.com/errata/RHSA-2026:68278
- https://access.redhat.com/security/cve/CVE-2026-18215
- RHBZ#2508309 https://bugzilla.redhat.com/show_bug.cgi?id=2508309
Provider assertions
2redhat · cna
Keycloak-services: keycloak-services: microsoft external access-token exchange bypasses configured tenant
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 068a43d796a0bf4c76571d63685c6d7814e0eeda3412732d5262546165e7c009
- Ingested
- 23 Sep 2026, 09:03:18 UTC
- Source record
- Official CVE record