Vulnerability · Published May 28, 2026 · Assigned by redhat
CVE-2026-9795Keycloak: keycloak: privilege escalation via improper scope mapping enforcement
High 7.3
In plain English
A high-severity security flaw in Red Hat build of Keycloak 26.4 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.keycloak:keycloak-services | 26.6.4 | GHSA-32h4-44jj-c5vx |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.4 | see references |
| Red Hat | Red Hat build of Keycloak 26.4 | see references |
| Red Hat | Red Hat build of Keycloak 26.4 | see references |
| Red Hat | Red Hat build of Keycloak 26.4.13 | see references |
| Red Hat | Red Hat build of Keycloak 26.6 | see references |
| Red Hat | Red Hat build of Keycloak 26.6 | see references |
| Red Hat | Red Hat build of Keycloak 26.6 | see references |
| Red Hat | Red Hat build of Keycloak 26.6.4 | see references |
Weakness: CWE-266 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N
References
- RHSA-2026:30049 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:30050 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:30083 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:30084 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-9795 vdb-entry, x_refsource_REDHAT
- RHBZ#2482462 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9795.json x_sadp-csaf-vex