---
id: CVE-2026-109081
title: >-
  Keycloak-services: keycloak-services: injection of roles into realm
  default-roles via dcr endpoint
summary: >-
  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 Init…
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-862
vendor: Red Hat
product: keycloak-services
affected:
  - keycloak-services (all versions)
  - rhbk/keycloak-rhel9 (all versions)
  - keycloak-services
published: '2026-11-06'
updated: '2026-11-06'
sourceUpdated: '2026-11-06T05:57:29.220Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-109081'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-109081'
tags:
  - cve.org
ingestedAt: '2026-11-06T06:46:27.285Z'
---

## Overview

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

## Affected

- `keycloak-services (all versions)`
- `rhbk/keycloak-rhel9 (all versions)`
- `keycloak-services`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

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.
