Description (CNA)
A flaw was found in Keycloak. A highly privileged user with `manage-clients` permission can exploit this vulnerability by injecting a hardcoded role mapper into any client. This action allows the user to bypass existing scope restrictions and inject the `realm-admin` role into generated tokens, resulting in privilege escalation and full administrative access to the realm.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Red Hat / Red Hat build of Keycloak 26.4 | unaffected 26.4.14-1 before * |
| Red Hat / Red Hat build of Keycloak 26.4 | unaffected 26.4-22 before * |
| Red Hat / Red Hat build of Keycloak 26.4 | unaffected 26.4-22 before * |
| Red Hat / Red Hat build of Keycloak 26.4.14 | unaffected |
| Red Hat / Red Hat build of Keycloak 26.6.5 | unaffected |
CWE
CWE-266
References
- https://access.redhat.com/errata/RHSA-2026:50846
- https://access.redhat.com/errata/RHSA-2026:50847
- https://access.redhat.com/errata/RHSA-2026:50848
- https://access.redhat.com/security/cve/CVE-2026-4629
- https://bugzilla.redhat.com/show_bug.cgi?id=2450244
ADP enrichment
No English description supplied.
No references supplied.