6.5Medium
CVE-2026-4629Keycloak: keycloak: privilege escalation through hardcoded role mapper injection
Description
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.
Weakness (CWE):
CWE-266
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| build keycloak | 26.4 | — | |
| build keycloak | 26.6 | — | |
| redhat | build of keycloak | — | |
| Red Hat | Red Hat build of Keycloak 26.4 | all versions | |
| Red Hat | Red Hat build of Keycloak 26.4.14 | — | |
| Red Hat | Red Hat build of Keycloak 26.6.5 | — |
References and patches
- RHSA-2026:50846 vendor-advisory
- RHSA-2026:50847 vendor-advisory
- RHSA-2026:50848 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-4629 vdb-entryVendor Advisory
- RHBZ#2450244 issue-trackingExploitVendor Advisory
CPE matches (NVD) (1)
cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:*:*:*:*