CVE-2026-4629
published medium CVSS 3.1 · 6.5Keycloak: keycloak: privilege escalation through hardcoded role mapper injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | keycloak0 through 26.2.16 · 26.3.0 through 26.3.5 · 26.4.0 to < 26.4.14 · 26.5.0 through 26.5.7 · 26.6.0 to < 26.6.5 · 26.7.0 to < 26.7.1 · Other versions: unaffected | Affected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.4 · 26.4.14-1 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.4 · 26.4-22 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.4 · 26.4-22 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.4.14 | Unaffected | Not required | redhat |
| Red Hat | — | Red Hat build of Keycloak 26.6.5 | Unaffected | Not required | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| keycloak | 0 through 26.2.16 (affected · semver)26.3.0 through 26.3.5 (affected · semver)26.4.0 to < 26.4.14 (affected · semver)26.5.0 through 26.5.7 (affected · semver)26.6.0 to < 26.6.5 (affected · semver)26.7.0 to < 26.7.1 (affected · semver)Default: unaffected | redhat · cna | |
| Red Hat | Red Hat build of Keycloak 26.4 | 26.4.14-1 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4 | 26.4-22 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4 | 26.4-22 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4.14 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6.5 | Default: unaffected | redhat · cna |
Weaknesses
1- CWE-266 Incorrect Privilege Assignment
References
5- RHSA-2026:50846 https://access.redhat.com/errata/RHSA-2026:50846
- RHSA-2026:50847 https://access.redhat.com/errata/RHSA-2026:50847
- RHSA-2026:50848 https://access.redhat.com/errata/RHSA-2026:50848
- https://access.redhat.com/security/cve/CVE-2026-4629
- RHBZ#2450244 https://bugzilla.redhat.com/show_bug.cgi?id=2450244
Provider assertions
2redhat · cna
Keycloak: keycloak: privilege escalation through hardcoded role mapper injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9dd136e02a9f77d5b171776bd23347a9f1a6dc0944347d188909719e8aa73218
- Ingested
- 25 Nov 2026, 15:46:28 UTC
- Source record
- Official CVE record