CVE-2026-109081

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

Published Nov 6, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
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).

Analysis

AI-generated

Technical impact

Keycloak’s Dynamic Client Registration endpoint fails to enforce proper authorization when handling the deprecated defaultRoles field. An authenticated user that has client creation rights or holds an Initial Access Token can supply an oversized list of roles. These roles are then incorporated into the realm’s default role configuration, causing every client in the realm to receive bloated tokens that contain a large number of roles. The resulting increase in token size and the memory required to manage them can exhaust server resources, degrade performance, and ultimately lead to a denial of service.

Affected Systems

The vulnerability affects installations of the Keycloak identity and access management server. No specific version information is provided, so any deployment that has not applied the official fix or that still permits the deprecated defaultRoles field is potentially impacted.

Risk and Exploitability

The CVSS score of 6.8 indicates a medium severity and the lack of an EPSS score means we do not have data on exploitation prevalence. Keycloak does not list this flaw in the CISA KEV catalog. The attack requires legitimate credentials with client creation privileges or the acquisition of an Initial Access Token, implying that the threat is primarily directed at internal or partially compromised environments. After injection, the effect is a local denial of service that can become system wide due to resource exhaustion.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.


OpenCVE Recommended Actions

  • Revoke or limit client creation privileges to trusted administrators and ensure that any remaining users cannot create clients with high privilege levels.
  • If a patch is not immediately available, disable the use of the deprecated defaultRoles field in the Dynamic Client Registration configuration and enforce role limits to prevent excessive role injection.
  • Monitor token sizes and memory consumption on Keycloak servers; configure alerts to detect sudden increases that could indicate exploitation.

Generated by OpenCVE AI on November 6, 2026 at 02:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak: cpe:/a:redhat:build_keycloak:26.6::el9
References
Type Values Removed Values Added
Title Denial of Service via Default Role Injection in Keycloak DCR Keycloak-services: keycloak-services: injection of roles into realm default-roles via dcr endpoint
First Time appeared Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
References
Type Values Removed Values Added
Title Denial of Service via Default Role Injection in Keycloak DCR
Type Values Removed Values Added
First Time appeared Keycloak
Keycloak keycloak
Vendors & Products Keycloak
Keycloak keycloak
Type Values Removed Values Added
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).
Weaknesses CWE-862
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H'}

threat_severity

Moderate

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 10, 2026, 7:40 PM
Reserved
Oct 12, 2026, 5:43 AM
Status
Awaiting Analysis
Published
Nov 6, 2026, 6:16 AM
Modified
Nov 10, 2026, 8:17 PM
Severity
Moderate
Public date
Nov 5, 2026, 12:00 AM