Skip to main content

Red Hat Keycloak EUVDEUVD-2026-40300

| CVE-2026-4629 MEDIUM
Incorrect Privilege Assignment (CWE-266)
2026-06-30 redhat GHSA-m4j4-8chj-8g5f
6.5
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain manage-clients delegated role
  2. Delivery
    Access Keycloak admin API or console
  3. Exploit
    Inject hardcoded realm-admin role mapper into target client
  4. Execution
    Authenticate user through modified client
  5. Persist
    Receive JWT containing realm-admin claim
  6. Impact
    Exercise full realm administrative control

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Privilege assignment review
Exploitation Conditions

Exploitation requires an attacker to hold the manage-clients permission within the target Keycloak realm - this is a non-default, explicitly assigned delegated administrative role, confirmed by the CVSS PR:H metric. This permission is typically granted in multi-tenant or DevOps-oriented Keycloak deployments where application teams manage their own client registrations. Exploitation is specifically enabled by Keycloak's failure to enforce privilege-tier restrictions when configuring role mappers, meaning the role mapper creation feature itself must be accessible (no additional non-default configuration is required beyond holding manage-clients). Exploitation is limited by: the requirement for an existing authenticated user account with manage-clients; the absence of this permission in most standard user accounts; and the need for network access to the Keycloak admin console or REST API endpoint. Default installations where only the realm-admin role holds manage-clients are not practically exposed beyond insider threat scenarios.

Impact

The NVD CVSS 3.1 score of 6.5 reflects the PR:H prerequisite that meaningfully constrains exploitation to users who have already been explicitly granted manage-clients. Despite C:H and I:H impact metrics - reflecting full token compromise and realm control - the score is kept moderate by the high-privilege requirement and absence of a scope change in Red Hat's scoring. However, independently assessed, the jump from manage-clients to realm-admin is a classic privilege boundary crossing that arguably warrants S:C (scope changed), which would raise the severity considerably. There is no EPSS data provided to quantify exploitation probability, no CISA KEV listing, and no public POC, meaning real-world urgency is currently moderate rather than critical. The most significant real-world risk is in multi-tenant or delegated-admin Keycloak deployments where manage-clients permissions are distributed to non-realm-admin operators or external teams - exactly the scenario Keycloak's permission model is designed to support. In those environments, the assumed trust boundary between manage-clients and realm-admin is completely broken. Environments where only full realm admins hold manage-clients are effectively not exposed to meaningful exploitation beyond insider threat.

Exploit ScenarioDerived

A Keycloak operator with manage-clients permission - such as a developer or tenant administrator in a multi-tenant deployment - accesses the admin console or REST API and injects a hardcoded role mapper targeting the realm-admin role into a client they control. When any user subsequently authenticates through that client, the issued JWT contains the realm-admin role claim, and the attacker (or a user they control) can present this token to Keycloak admin APIs to gain full control over the realm, including the ability to create accounts, modify other clients, and access all protected resources. No public POC has been identified, but the technique is straightforward for anyone familiar with Keycloak's admin API.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 30, 2026

Privilege escalation in Red Hat Build of Keycloak allows an operator holding the manage-clients permission to inject a hardcoded role mapper into any client configuration, causing the realm-admin role to appear in subsequently issued tokens. This effectively grants the attacker full administrative control over the entire Keycloak realm, overriding scope restrictions that are intended to prevent exactly this delegation boundary crossing. No active exploitation has been confirmed (not listed in CISA KEV), no public proof-of-concept has been identified at time of analysis, and no EPSS data was available; however, the high-impact nature of achieving realm-admin privileges makes this a meaningful insider or delegated-admin threat.

RemediationAI

No vendor-released patch version has been independently confirmed from the available data. Monitor https://access.redhat.com/security/cve/CVE-2026-4629 for patch releases from Red Hat. In the interim, the most effective compensating control is to audit and restrict who holds the manage-clients permission across all realms - organizations practicing least privilege should ensure this role is held only by fully trusted administrators, narrowing the attack surface to the insider threat model. Where manage-clients must be delegated to lower-trust operators, consider implementing additional monitoring of protocol mapper configurations for unexpected role mapper entries referencing high-privilege roles such as realm-admin. Keycloak's built-in admin events log can be used to detect and alert on client-level mapper changes. There is no configuration setting to disable role mapper injection entirely without breaking legitimate use cases, so access restriction is the primary compensating control. Trade-off: restricting manage-clients delegation may reduce operational flexibility in multi-tenant deployments.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Keycloak is a widely deployed open-source Identity and Access Management platform commonly used for SSO, OAuth2, and OIDC token issuance in enterprise environments. Clients in Keycloak are application registrations that receive scoped JWT tokens; role mappers are protocol mapper configurations that control which roles are embedded into those tokens. The manage-clients permission is a delegated administrative privilege in Keycloak intended to allow a limited operator to administer client registrations without granting full realm-admin access - a common pattern in multi-tenant deployments. The root cause, classified as CWE-266 (Incorrect Privilege Assignment), is that the platform fails to enforce scope boundaries when a role mapper is injected with a hardcoded reference to the realm-admin composite role. A properly implemented permission model should prevent a manage-clients holder from escalating to roles above their own privilege tier. The affected product is identified by CPE cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:* - all versions of the Red Hat distribution are indicated as affected.

Know when Red Hat Build Of Keycloak gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (redhat) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 8.7 HIGH

Scope changed to S:C because privilege escalation to realm-admin crosses the manage-clients authorization boundary, affecting all realm components beyond the attacker's granted scope.

3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
Red Hat 6.5 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Medium
widely deployed enterprise IAM/SSO platform in cloud-native stacks
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Affected Products (CPE)CVE.org

cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
CVE-2026-18963 CRITICAL POC
9.1 Aug 18

Account takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in

CVE-2026-16442 CRITICAL
9.8 Aug 05

Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML

CVE-2026-16443 CRITICAL
9.1 Aug 05

Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge

CVE-2026-15572 HIGH
8.8 Aug 05

Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil

CVE-2026-93569 HIGH
8.2 Sep 18

Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat

CVE-2026-9800 HIGH
8.1 Jun 25

Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con

CVE-2026-15573 HIGH
8.1 Aug 05

URI normalization bypass in Keycloak's Authorization Services PathMatcher allows authenticated low-privilege users to re

CVE-2026-16102 HIGH
8.1 Aug 05

Privilege escalation in Keycloak's Dynamic Client Registration (DCR) component allows attackers with standard user accou

CVE-2026-18214 HIGH
8.1 Jul 31

Token exchange in Keycloak bypasses Google Workspace domain allowlist restrictions, enabling any valid Google account ho

CVE-2026-11800 HIGH
8.1 Jun 25

Signature-verification bypass in Keycloak (and Red Hat's Keycloak-based products such as Red Hat Single Sign-On 7 and Re

CVE-2026-18215 HIGH
8.1 Jul 31

Tenant-restriction bypass in Keycloak's Microsoft identity provider integration allows attackers holding any valid Micro

CVE-2026-18967 HIGH
8.1 Aug 06

Session hijacking via SAML assertion replay in Keycloak's SAML broker component allows adjacent-network attackers to aut

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy