CVE-2026-9795

Keycloak: keycloak: privilege escalation via improper scope mapping enforcement

State
Published
Severity
7.3 High
Published
May 28, 2026
Updated
Jul 15, 2026
Reserved
May 28, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.3 HighCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:Nredhat
3.17.3 HighCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:Nredhat-SADP

Weaknesses

  • CWE-266 Incorrect Privilege Assignment

Affected Products

ProductVersions
Red Hat build of Keycloak 26.4Red Hat
  • 26.4.13-1 and laterNot affected
Red Hat build of Keycloak 26.4Red Hat
  • 26.4-19 and laterNot affected
Red Hat build of Keycloak 26.4Red Hat
  • 26.4-19 and laterNot affected
Red Hat build of Keycloak 26.4.13Red Hat
    Red Hat build of Keycloak 26.6Red Hat
    • 26.6.4-2 and laterNot affected
    Red Hat build of Keycloak 26.6Red Hat
    • 26.6-8 and laterNot affected
    Red Hat build of Keycloak 26.6Red Hat
    • 26.6-8 and laterNot affected
    Red Hat build of Keycloak 26.6.4Red Hat

      References

      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.