6.8Medium

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

Red Hat Red Hat build of Keycloak 26.6; Red Hat Red Hat build of Keycloak 26.6.8; Red Hat Red Hat Single Sign-On 7 Published: (13 days ago)

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).

Weakness (CWE): CWE-862

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

Affected products and versions

VendorProductVersions
build keycloak 26.6 —
Red Hat Red Hat build of Keycloak 26.6 all versions
Red Hat Red Hat build of Keycloak 26.6.8 —
Red Hat Red Hat Single Sign-On 7 —

References and patches