High severity · published May 28, 2026
CVE-2026-9795
Keycloak: keycloak: privilege escalation via improper scope mapping enforcement
7.3
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N
Attack vector
Network
Complexity
High
Privileges
High
User interaction
Required
Confidentiality
High
Integrity
High
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 29% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RH
Red Hat build of Keycloak 26.4 · Red Hat
All versions, or not specified · source: vendor, CISA
RH
Red Hat build of Keycloak 26.6 · Red Hat
All versions, or not specified · source: vendor, CISA
BO
Build OF Keycloak · Redhat
All versions, or not specified · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-9795
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-9795
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:30049
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:30050
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:30083
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:30084
Mitigation
https://access.redhat.com/security/cve/CVE-2026-9795
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2482462
More from Red Hat build of Keycloak 26.4
9.8
CVE-2026-16442
Keycloak-services: keycloak-services: saml idp-initiated broker login bypasses link-only restriction
9.1
CVE-2026-18963
Keycloak-services: keycloak-services: unauthenticated account takeover via reset-credentials flow bypass
9.1
CVE-2026-16443
Keycloak-services: keycloak-services: saml broker metadata import disables response signature validation
8.8
CVE-2026-15572
Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation
8.8
CVE-2026-9704
Keycloak: keycloak: privilege escalation due to oversized subject_token jwt
