Description
A flaw was found in Keycloak's Dynamic Client Registration (DCR) security policy management. The "Allowed Protocol Mapper Types" policy, which restricts which types of data mappers a client can use, fails to re-validate the mapper type during a client update if the mapper's configuration remains unchanged. An attacker with client registration privileges can exploit this by first registering an allowed mapper type with a malicious configuration and then swapping it for a restricted, high-privilege mapper type (such as one that hardcodes administrative roles). This allows the attacker to gain full administrative access to the Keycloak realm.
Published: 2026-08-05
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in Keycloak’s Dynamic Client Registration (DCR) security policy management allows a client with registration privileges to bypass the “Allowed Protocol Mapper Types” rule. The policy fails to re‑validate a mapper’s type when its configuration is unchanged during an update, letting an attacker change an allowed mapper to a restricted, high‑privilege mapper such as one that hard‑codes administrative roles. Once the swap is complete the attacker gains full administrative access to the Keycloak realm, compromising confidentiality, integrity, and availability of all realm data. This weakness is a classic type confusion error, identified as CWE‑843.

Affected Systems

Red Hat Build of Keycloak is affected. No specific version range is provided in the advisory, so administrators should verify installation against the latest release and review the changelog for the fix. All deployments that use DCR and expose client registration to untrusted actors are at risk.

Risk and Exploitability

The CVSS score is 8.8, indicating high severity. No EPSS score is available, and the vulnerability is not listed in CISA’s KEV catalog, but the attack path requires only client‑registration privileges, which may be granted to many users. The attacker can exploit the flaw by first registering an allowed mapper type with a malicious configuration, then updating the mapper to a restricted high‑privilege type; no additional authentication is required beyond the existing registration rights. Because the flaw resides in server‑side policy enforcement, it can be executed remotely over the standard DCR endpoint.

Generated by OpenCVE AI on August 5, 2026 at 16:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the latest Red Hat Build of Keycloak version that includes the DCR policy re‑validation fix.
  • Restrict client registration privileges to trusted personnel or disable DCR for untrusted clients until the patch is applied.
  • Audit and remove any high‑privilege protocol mappers from existing client configurations; replace them with least‑privilege alternatives.
  • Enforce stricter application‑level checks by validating mapper type against the allowed list on every update, especially when the configuration remains unchanged.

Generated by OpenCVE AI on August 5, 2026 at 16:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Description A flaw was found in Keycloak's Dynamic Client Registration (DCR) security policy management. The "Allowed Protocol Mapper Types" policy, which restricts which types of data mappers a client can use, fails to re-validate the mapper type during a client update if the mapper's configuration remains unchanged. An attacker with client registration privileges can exploit this by first registering an allowed mapper type with a malicious configuration and then swapping it for a restricted, high-privilege mapper type (such as one that hardcodes administrative roles). This allows the attacker to gain full administrative access to the Keycloak realm.
Title Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation
First Time appeared Redhat
Redhat build Keycloak
Weaknesses CWE-843
CPEs cpe:/a:redhat:build_keycloak:
Vendors & Products Redhat
Redhat build Keycloak
References
Metrics cvssV3_1

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


Subscriptions

Redhat Build Keycloak
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-05T16:21:46.528Z

Reserved: 2026-07-13T07:36:49.779Z

Link: CVE-2026-15572

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T16:30:12Z

Weaknesses
  • CWE-843

    Access of Resource Using Incompatible Type ('Type Confusion')