CVE-2026-4629 Keycloak: keycloak: privilege escalation through hardcoded role mapper injection
MediumCVSS 6.5
EPSS 0.49%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Red Hat
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.
Upgrade path
7 packages: 2 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat build of keycloak | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-operator-bundle:26.4.14-1(Red Hat build_keycloak 26.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9(Red Hat build_keycloak 26.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9-operator:26.4-22(Red Hat build_keycloak 26.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9:26.4-22(Red Hat build_keycloak 26.4 el9) | All versions | No fix listed | No fix yet |
| keycloak | <= 26.2.16; >= 26.3.0, <= 26.3.5; >= 26.4.0, < 26.4.14; >= 26.5.0, <= 26.5.7 +2 more | 26.4.14, 26.6.5, 26.7.1 | Fixed |
| redhat build keycloak | < 26.4-22; < 26.4.14-1; = 26.4; = 26.6 | 26.4-22, 26.4.14-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/rhbk/keycloak-operator-bundle:26.4.14-1(Red Hat:build_keycloak:26.4::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9:26.4-22(Red Hat:build_keycloak:26.4::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9-operator:26.4-22(Red Hat:build_keycloak:26.4::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9(Red Hat:build_keycloak:26.4::el9) | All versions | No fix listed |
| keycloak | <= 26.2.16 | No fix listed |
| keycloak | >= 26.3.0, <= 26.3.5 | No fix listed |
| keycloak | >= 26.4.0, < 26.4.14 | 26.4.14 |
| keycloak | >= 26.5.0, <= 26.5.7 | No fix listed |
| keycloak | >= 26.6.0, < 26.6.5 | 26.6.5 |
| keycloak | >= 26.7.0, < 26.7.1 | 26.7.1 |
| redhat build keycloak | < 26.4.14-1 | 26.4.14-1 |
| redhat build keycloak | < 26.4-22 | 26.4-22 |
| redhat build keycloak | = 26.4 | No fix listed |
| redhat build keycloak | = 26.6 | No fix listed |
| redhat build of keycloak | All versions | No fix listed |
References
- RHSA-2026:50846 patch vendor-advisory
- RHSA-2026:50847 patch vendor-advisory
- RHSA-2026:50848 patch vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2450244 exploit issue-tracking vendor-advisory
- www.cve.org
- nvd.nist.gov
- ENISA EUVD EUVD-2026-40300 third-party-advisory