CVE-2026-4629
Medium 6.5No known exploitationFix status unknownKeycloak: keycloak: privilege escalation through hardcoded role mapper injection
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 35% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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-266
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. Source (opens in a new tab)
- Vendor guidance
- access.redhat.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| redhat | build_of_keycloak | Not documented | Not documented | NIST NVD |
| Red Hat | Red Hat build of Keycloak 26.4 (unaffected) | 26.4-22 | Not documented | CVE Program |
| Red Hat | Red Hat build of Keycloak 26.4 (unaffected) | 26.4-22 | Not documented | CVE Program |
| Red Hat | Red Hat build of Keycloak 26.4 (unaffected) | 26.4.14-1 | Not documented | CVE Program |
| Red Hat | Red Hat build of Keycloak 26.4.14 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat build of Keycloak 26.6.5 (status unknown) | Not documented | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by redhat
Source: CVE Program (opens in a new tab)
Vendor guidance and references
- RHSA-2026:50846 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2026:50847 (opens in a new tab)vendor-advisory, x_refsource_redhat
- RHSA-2026:50848 (opens in a new tab)vendor-advisory, x_refsource_redhat
- https://access.redhat.com/security/cve/CVE-2026-4629 (opens in a new tab)vdb-entry, vendor advisory, x_refsource_redhat
- RHBZ#2450244 (opens in a new tab)issue-tracking, x_refsource_redhat