Vulnerability · Published Jun 30, 2026 · Assigned by redhat
CVE-2026-4629Keycloak: keycloak: privilege escalation through hardcoded role mapper injection
Medium 6.5
In plain English
A medium-severity security flaw in Red Hat build of Keycloak 26.4 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities).
Official 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 (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.4 | see references |
| Red Hat | Red Hat build of Keycloak 26.4 | see references |
| Red Hat | Red Hat build of Keycloak 26.4 | see references |
| Red Hat | Red Hat build of Keycloak 26.4.14 | see references |
| Red Hat | Red Hat build of Keycloak 26.6.5 | see references |
Weakness: CWE-266 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
References
- RHSA-2026:50846 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:50847 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:50848 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-4629 vdb-entry, x_refsource_REDHAT
- RHBZ#2450244 issue-tracking, x_refsource_REDHAT