# CVE-2026-12388: Keycloak-broker: keycloak: privilege escalation to realm administrator via improper authorization in identity provider mapper

- Severity: Medium 6.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:H/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.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-06-30T12:00:28.675Z
- Modified: 2026-11-06T18:18:06.103Z
- Weaknesses: CWE-266
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

A flaw was found in the Identity Provider (IdP) mapper component of Keycloak, which is used to manage how user information from external services is mapped to Keycloak users. An administrator with limited permissions to manage identity providers can exploit this flaw by creating a "Hardcoded Role" mapper that assigns high-level administrative roles (like realm-admin) to themselves or others. This allows a restricted administrator to bypass security checks and gain full control over the entire realm.

(As written by CVE List.)

## Affected

- rhbk/keycloak-operator-bundle: no versions given (not affected: from 26.6.8-2 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 26.6-24 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 26.6-24 before *)
- redhat build_of_keycloak: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2026:95761> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:95762> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-12388> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2489140> (issue-tracking, vendor-advisory)

## Sources

- CVE List: [CVE-2026-12388](https://www.cve.org/CVERecord?id=CVE-2026-12388), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-12388](https://nvd.nist.gov/vuln/detail/CVE-2026-12388), Public domain, modified 2026-11-06

---

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