6.5Medium

CVE-2026-4629Keycloak: keycloak: privilege escalation through hardcoded role mapper injection

Red Hat Red Hat build of Keycloak 26.4; Red Hat Red Hat build of Keycloak 26.4.14; Red Hat Red Hat build of Keycloak 26.6.5 Published: (4 months ago)

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.

Weakness (CWE): CWE-266

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:*:*:*:*