Keycloak Fine-Grained Admin Permissions Let a Limited Administrator Inject Any Realm Role Into Client Scope, Projecting Elevated Privileges Into User Tokens
Last refreshed2026-11-17
Status: UPDATED
| Advisory ID: CVE-2026-9795
Key Details
CVE
CVE-2026-9795
CVSS Score / Version
7.3 (High) / CVSS v3.1
Updated
2026-10-26
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N
CVSS Prose
attack vector is network; attack complexity is high; privileges required is high; user interaction is required; scope is changed; confidentiality impact is high; integrity impact is high; availability impact is none.
Affected products
Red Hat build of Keycloak 26.6, Red Hat Build of Keycloak, and Red Hat build of Keycloak 26.4
Classified as
CWE-266 (Incorrect Privilege Assignment)
Exploitation prediction (EPSS)
0.35% probability of exploitation in the next 30 days (30% percentile) -- FIRST.org's EPSS model.
Affected Products, Subsystems & Sectors
Vendor
Product
Affected Versions
Patch Status
Red Hat
Red Hat build of Keycloak 26.6
Red Hat
Red Hat Build of Keycloak
Red Hat
Red Hat build of Keycloak 26.4
Subsystems
OT Supporting Infrastructure
Sectors
Multiple
What to Know
A flaw was found in Keycloak's Fine-Grained Admin Permissions (FGAPv2) feature. An administrator with limited client management permissions can exploit this vulnerability to assign any realm role, including highly privileged roles, to a client's scope mapping. This bypasses intended security controls, allowing the injected role to be projected into a user's authentication token when they access the modified client. This could lead to unauthorized privilege escalation within the Keycloak realm. (NVD)
What to Do
To mitigate this issue, disable the Fine-Grained Admin Permissions (FGAPv2) feature in Keycloak if it is not strictly required. This can typically be done by setting `adminPermissionsEnabled` to `false` in the realm configuration. A restart or reload of the Keycloak service may be required for the changes to take effect. Source: Red Hat CVE-2026-9795
New Red Hat build of Keycloak 26.4.13 packages are available from the Customer Portal. Before applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Source: Red Hat RHSA-2026:30049
New Red Hat build of Keycloak 26.6.4 packages are available from the Customer Portal. Before applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Source: Red Hat RHSA-2026:30083