CVE-2026-4629: Incorrect Privilege Assignment in Red Hat Red Hat build of Keycloak 26.4
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.
AI Analysis
Technical Summary
This vulnerability allows a user with the 'manage-clients' permission in Keycloak to inject a hardcoded role mapper into any client. By doing so, the attacker can bypass existing scope restrictions and inject the 'realm-admin' role into generated tokens, effectively escalating privileges to full administrative access within the realm. The CVSS v3.1 score is 6.5 (medium severity) with network attack vector, low complexity, high privileges required, no user interaction, unchanged scope, and high confidentiality and integrity impact. Red Hat has not provided an official fix or mitigation that meets their criteria for ease of use, applicability, or stability. The vulnerability is documented in Red Hat's advisory and Bugzilla 2450244.
Potential Impact
An attacker with 'manage-clients' permission can escalate privileges to full administrative access by injecting the 'realm-admin' role into tokens, bypassing scope restrictions. This compromises confidentiality and integrity of the realm but does not affect availability. The vulnerability requires high privileges to exploit and no user interaction.
Mitigation Recommendations
Currently, Red Hat states that no mitigation meeting their criteria for ease of use, applicability, or stability is available. Users should monitor Red Hat advisories for updates and consider limiting the assignment of the 'manage-clients' permission to trusted administrators only. Applying the upcoming security update to Red Hat build of Keycloak 26.4.14 when available is recommended.
CVE-2026-4629: Incorrect Privilege Assignment in Red Hat Red Hat build of Keycloak 26.4
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.
CVSS v3.1
Score 6.5medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability allows a user with the 'manage-clients' permission in Keycloak to inject a hardcoded role mapper into any client. By doing so, the attacker can bypass existing scope restrictions and inject the 'realm-admin' role into generated tokens, effectively escalating privileges to full administrative access within the realm. The CVSS v3.1 score is 6.5 (medium severity) with network attack vector, low complexity, high privileges required, no user interaction, unchanged scope, and high confidentiality and integrity impact. Red Hat has not provided an official fix or mitigation that meets their criteria for ease of use, applicability, or stability. The vulnerability is documented in Red Hat's advisory and Bugzilla 2450244.
Potential Impact
An attacker with 'manage-clients' permission can escalate privileges to full administrative access by injecting the 'realm-admin' role into tokens, bypassing scope restrictions. This compromises confidentiality and integrity of the realm but does not affect availability. The vulnerability requires high privileges to exploit and no user interaction.
Mitigation Recommendations
Currently, Red Hat states that no mitigation meeting their criteria for ease of use, applicability, or stability is available. Users should monitor Red Hat advisories for updates and consider limiting the assignment of the 'manage-clients' permission to trusted administrators only. Applying the upcoming security update to Red Hat build of Keycloak 26.4.14 when available is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-03-23T08:02:49.337Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-4629","vendor":"Red Hat"}]
Threat ID: 6a43b89827e9c79719c1b3ee
Added to database: 06/30/2026, 12:37:44 UTC
Last enriched: 08/06/2026, 13:15:45 UTC
Last updated: 08/12/2026, 15:12:27 UTC
Views: 108
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.