Keycloak: keycloak: privilege escalation through hardcoded role mapper injection (Red Hat Red Hat build of Keycloak 26.4)

CVE-2026-4629
MEDIUM 6.5

At a glance

Source
NVD
EPSS
EPSS 0.49 % · percentile 42 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Modified

Description

A flaw was found in Keycloak. A highly privileged user with `manage-clients` permission can exploit this vulnerability by injecting a hardcoded role mapper into any client. This action allows the user to bypass existing scope restrictions and inject the `realm-admin` role into generated tokens, resulting in privilege escalation and full administrative access to the realm.

Weaknesses (CWE)

  • CWE-266 — Incorrect Privilege Assignment

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:Nredhat
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:NNVD · secalert@redhat.com (Secondary)

European references

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