Keycloak-services: keycloak-services: injection of roles into realm default-roles via dcr endpoint

State
Published
Severity
6.8 Medium
Published
Nov 6, 2026
Updated
Nov 10, 2026
Reserved
Oct 12, 2026

Read the record on cve.org

Description

A flaw was found in Keycloak. The Dynamic Client Registration (DCR) endpoint does not properly validate authorization when processing the deprecated defaultRoles field. An authenticated attacker with client creation privileges or an Initial Access Token (IAT) can inject excessive roles into the realm's default roles configuration. This causes clients across the realm to generate bloated access tokens, resulting in performance and memory degradation that can lead to a Denial of Service (DoS).

ProductVersions
Red Hat build of Keycloak 26.6 Red Hat26.6.8-2 and later Not Affected
Red Hat build of Keycloak 26.6 Red Hat26.6-24 and later Not Affected
Red Hat build of Keycloak 26.6 Red Hat26.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

Weaknesses

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.