Skip to content
CVE PROGRAM SOURCE RECORD6.5 Medium

CVE-2026-4629

Keycloak: keycloak: privilege escalation through hardcoded role mapper injection

Description

A flaw was found in Keycloak. A highly privileged user with `manage-clients` permission can exploit this vulnerability by injecting a hardcoded role mapper into any client. This action allows the user to bypass existing scope restrictions and inject the `realm-admin` role into generated tokens, resulting in privilege escalation and full administrative access to the realm.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Red Hat Red Hat build of Keycloak 26.4

Default version status: affected

  • 26.4.14-1 to < *unaffected

Red Hat Red Hat build of Keycloak 26.4

Default version status: affected

  • 26.4-22 to < *unaffected

Red Hat Red Hat build of Keycloak 26.4

Default version status: affected

  • 26.4-22 to < *unaffected

Red Hat Red Hat build of Keycloak 26.4.14

Default version status: unaffected

Red Hat Red Hat build of Keycloak 26.6.5

Default version status: unaffected

References