Red Hat build of Keycloak 26.4
Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 26.4.14-1
Fixed in 26.4-22
Fixed in 26.4-22
Fixed in 26.6.5-1
Fixed in 26.6-11
Fixed in 26.6-11
Mitigation
Upgrade Red Hat build of Keycloak 26.4 to 26.4.14-1 or later.
Upgrade Red Hat build of Keycloak 26.4 to 26.4-22 or later.
Upgrade Red Hat build of Keycloak 26.4 to 26.4-22 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6.5-1 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6-11 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6-11 or later.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:50846
- Vendor advisory access.redhat.com/errata/RHSA-2026:50847
- Vendor advisory access.redhat.com/errata/RHSA-2026:50848
1 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:50849
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.