# CVE-2026-18215: Keycloak-services: keycloak-services: microsoft external access-token exchange bypasses configured tenant

- Severity: Medium 6.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2026-07-31T06:48:14.687Z
- Modified: 2026-09-17T14:45:09.416Z
- Also known as: BIT-KEYCLOAK-2026-18215
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- rhbk/keycloak-operator-bundle: no versions given (not affected: from 26.6.7-3 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 26.6-20 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 26.6-20 before *)
- keycloak-services: no versions given
- rhbk-keycloak-rhel9/rhbk-keycloak-rhel9: no versions given
- rhbk-openshift-rhel9/rhbk-openshift-rhel9: no versions given
- redhat build_of_keycloak: no versions given
- keycloak (Bitnami): before 26.7.3

## Every score

- redhat: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://access.redhat.com/errata/RHSA-2026:68277> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:68278> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-18215> (advisory, vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2508309> (advisory, issue-tracking, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-18215> (web)

## Sources

- CVE List: [CVE-2026-18215](https://www.cve.org/CVERecord?id=CVE-2026-18215), CVE Terms of Use, modified 2026-09-16
- NVD: [CVE-2026-18215](https://nvd.nist.gov/vuln/detail/CVE-2026-18215), Public domain, modified 2026-09-16
- Bitnami Vulnerability Database: [BIT-KEYCLOAK-2026-18215](https://osv.dev/vulnerability/BIT-KEYCLOAK-2026-18215), Apache-2.0, modified 2026-09-17

---

Page: https://cve.day/CVE-2026-18215 · Whole record: https://cve.day/CVE-2026-18215.json · Rebuilt by cve.day 2026-11-25T22:59:30.697Z
