Bug 2450244 (CVE-2026-4629) - CVE-2026-4629 keycloak: Keycloak: Privilege escalation through hardcoded role mapper injection
Summary: CVE-2026-4629 keycloak: Keycloak: Privilege escalation through hardcoded role...
Keywords:
Status: NEW
Alias: CVE-2026-4629
Deadline: 2026-04-20
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-03-23 08:02 UTC by OSIDB Bzimport
Modified: 2026-06-30 11:49 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-03-23 08:02:58 UTC
A user with manage-clients permission can escalate to realm-admin by
injecting a hardcoded role mapper into any client. The mapper injects
realm-admin into tokens at generation time, bypassing scope
restrictions.

*Steps to reproduce:*

1. Create a user with only manage-clients role (no user/role/realm access)
2. As attacker, add oidc-hardcoded-role-mapper to any client with
config: {"role": "realm-management.realm-admin"}
3. Authenticate through that client
4. Token is generated with realm-admin role injected (bypasses
fullScopeAllowed: false)
5. Use token to call admin API — full realm-admin access confirmed


Note You need to log in before you can comment on or make changes to this bug.