All reports
Medium

keycloak-broker: Keycloak: Privilege escalation to realm administrator via improper authorization in identity provider mapper

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-12388

Probability of exploitation in the next 30 days: 0.47%

FIRST EPSS · 2026-11-20

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.

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.