What’s Vulnerable › Vulnerabilities
CVE-2026-4629: Keycloak: keycloak: privilege escalation through hardcoded role mapper injection
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-06-30 · updated 2026-10-25
- Weakness: CWE-266
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.
Affected products
- Red Hat build of Keycloak 26.4: all versions
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
Get alerted when CVE-2026-4629 or the next vulnerability affects your stack