CVE-2026-9795 Keycloak: keycloak: privilege escalation via improper scope mapping enforcement
Limited administrators can escalate privileges by assigning high-privilege roles to client scope mappings in Keycloak's FGAPv2 feature.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-9795?
CVE-2026-9795 is a high-severity vulnerability in Redhat Build of Keycloak, published on 28 May 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
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.
Weakness: CWE-266
Which versions are affected by CVE-2026-9795?
2 open source packages ship an affected version, including org.keycloak:keycloak-services. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-services Maven | All versions | 26.6.4 |
org.keycloak:keycloak-services Maven | All versions | 26.6.4 |
Products include Redhat Build of Keycloak.
How do I fix CVE-2026-9795?
Upgrade org.keycloak:keycloak-services to 26.6.4 or later.
Is CVE-2026-9795 being exploited?
There is no known exploitation of CVE-2026-9795 in the wild and no public exploit code.
Other vulnerabilities in Redhat Build of Keycloak
- CVE-2026-15572 Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation
- CVE-2026-3047 Keycloak SAML Broken has Authentication Bypass by Primary Weakness
- CVE-2026-15573 Keycloak-services: keycloak-services: authorization bypass via unnormalized uri matching in pathmatcher
- CVE-2026-16102 Keycloak-services: keycloak-services: default dcr policy allows role forgery via user property mappers
- CVE-2026-1609 Org.keycloak/keycloak-quarkus-server: keycloak: unauthorized access via jwt authorization grant with disabled users
Sources
Also known as ECHO-2426-223e-d79f, GHSA-32h4-44jj-c5vx, MINI-5vq4-3xqf-hrmj, MINI-mc7c-6wmh-v55f.