CVE-2026-12388
Keycloak-broker: keycloak: privilege escalation to realm administrator via improper authorization in identity provider mapper
- State
- Published
- Severity
- 6.5 Medium
- Published
- Jun 30, 2026
- Updated
- Jun 30, 2026
- Reserved
- Jun 16, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.5 Medium | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N | redhat |
Weaknesses
- CWE-266 Incorrect Privilege Assignment
Affected Products
| Product | Versions |
|---|---|
Red Hat Build of KeycloakRed Hat |
References
- https://access.redhat.com/security/cve/CVE-2026-12388vdb-entry
- RHBZ#2489140issue-tracking
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.