Keycloak-services: keycloak-services: client manager can substitute sessionless token principal via hardcoded-claim mappers to obtain realm administrator authority
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 5, 2026
- Updated
- Nov 9, 2026
- Reserved
- Sep 25, 2026
Description
A flaw was found in the protocol mapper and identity resolution components of Keycloak. The issue occurs when a client manager uses hardcoded-claim mappers to override identity claims in sessionless service-account tokens. Because these tokens lack a session ID, Keycloak may incorrectly resolve the token bearer as a different, highly privileged user based on the manipulated claims. This can allow an attacker with limited client management permissions to impersonate a realm administrator and gain full control over the realm.
| Product | Versions |
|---|---|
| Red Hat build of Keycloak 26.4 Red Hat | 26.4.17-2 and later Not Affected |
| Red Hat build of Keycloak 26.4 Red Hat | 26.4-29 and later Not Affected |
| Red Hat build of Keycloak 26.4 Red Hat | 26.4-30 and later Not Affected |
| Red Hat build of Keycloak 26.4.17 Red Hat | |
| Red Hat build of Keycloak 26.4.17 Red Hat | |
| Red Hat build of Keycloak 26.6 Red Hat | 26.6.8-2 and later Not Affected |
| Red Hat build of Keycloak 26.6 Red Hat | 26.6-24 and later Not Affected |
| Red Hat build of Keycloak 26.6 Red Hat | 26.6-24 and later Not Affected |
| Red Hat build of Keycloak 26.6.8 Red Hat | |
| Red Hat build of Keycloak 26.6.8 Red Hat | |
| Red Hat Single Sign-On 7 Red Hat |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.1 High | redhat |
Weaknesses
- CWE-287 Improper Authentication
References
- RHSA-2026:95759Vendor Advisory
- RHSA-2026:95760Vendor Advisory
- RHSA-2026:95761Vendor Advisory
- RHSA-2026:95762Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-97847Vulnerability Database
- RHBZ#2540950Issue Tracker
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.