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).
Published: n/a
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service via excessive default roles injection
Action: Apply Patch
AI Analysis

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.

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

Remediation

No solution or workaround provided in the CVE record.

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

History

Fri, 06 Nov 2026 03:15:00 +0000

Type Values Removed Values Added
Title Denial of Service via Default Role Injection in Keycloak DCR

Fri, 06 Nov 2026 03:00:00 +0000

Type Values Removed Values Added
First Time appeared Keycloak
Keycloak keycloak
Vendors & Products Keycloak
Keycloak keycloak

Fri, 06 Nov 2026 00:15:00 +0000

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


Subscriptions

Keycloak Keycloak
cve-icon MITRE

No data.

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-11-05T00:00:00Z

Links: CVE-2026-109081 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T03:00:16Z

Weaknesses