Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation (Red Hat Red Hat build of Keycloak 26.4)

CVE-2026-15572
HIGH 8.8

At a glance

Source
NVD
EPSS
EPSS 0.65 % · percentile 51 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-843 — Access of Resource Using Incompatible Type

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat
CVSS 3.1HIGH 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · secalert@redhat.com (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Red Hat · Red Hat build of Keycloak 26.4unaffected 26.4.14-1 < *
Red Hat · Red Hat build of Keycloak 26.4unaffected 26.4-22 < *
Red Hat · Red Hat build of Keycloak 26.4unaffected 26.4-22 < *
Red Hat · Red Hat build of Keycloak 26.4.14
Red Hat · Red Hat build of Keycloak 26.6unaffected 26.6.5-1 < *
Red Hat · Red Hat build of Keycloak 26.6unaffected 26.6-11 < *
Red Hat · Red Hat build of Keycloak 26.6unaffected 26.6-11 < *
Red Hat · Red Hat build of Keycloak 26.6.5

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD