Quick answers
- Is CVE-2026-12388 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-12388 being exploited in the wild.
- How severe is CVE-2026-12388?
- Medium severity, with a CVSS score of 6.5, published 30 June 2026.
- Which products and versions are affected?
- Red Hat Keycloak; Red Hat Red Hat Build of Keycloak.
- Is there a fix for CVE-2026-12388?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2026-12388 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2026-12388?
- Check whether you run Red Hat build of Keycloak. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
An improper authorization flaw exists in the Identity Provider (IdP) mapper component (org.keycloak.broker) of Keycloak. The endpoint fails to enforce the 'requireMapRole' authorization check, which is intended to prevent administrators from assigning roles they do not themselves possess. An attacker with 'manage-identity-providers' permissions can exploit this by creating a 'Hardcoded Role' mapper for a malicious OIDC or SAML provider that targets high-privilege roles like 'realm-admin'. Upon authenticating through the controlled IdP, the high-level role is injected into the user's session, resulting in full privilege escalation.
Affected products
- Red Hat Keycloak
- Red Hat Red Hat Build of Keycloak
Timeline
- 2026-06-16: other: Reported to Red Hat Bugzilla
- 2026-06-30: disclosed: CVE published