Read the docs
TI-2026-04031 Aliases CVE-2026-4629GHSA-m4j4-8chj-8g5f

Keycloak: keycloak: privilege escalation through hardcoded role mapper injection

Priority LOW 31CWE-266Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
None
Attack complexity
Low
Impact type
Privilege escalation
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-266.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00486 42nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed Red Hat: 3 advisories

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Red HatRed Hat build of Keycloak 26.4—26.4.14-1Patch availableCNA
Red HatRed Hat build of Keycloak 26.4—26.4-22Patch availableCNA
Red HatRed Hat build of Keycloak 26.4—26.4-22Patch availableCNA
Red HatRed Hat build of Keycloak 26.4.14——Not affectedCNA
Red HatRed Hat build of Keycloak 26.6.5——Not affectedCNA
  • Red Hat build of Keycloak 26.4 VendorRed Hat Affected — Fixed in 26.4.14-1 Patch available CNA
  • Red Hat build of Keycloak 26.4 VendorRed Hat Affected — Fixed in 26.4-22 Patch available CNA
  • Red Hat build of Keycloak 26.4 VendorRed Hat Affected — Fixed in 26.4-22 Patch available CNA
  • Red Hat build of Keycloak 26.4.14 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat build of Keycloak 26.6.5 VendorRed Hat Affected — Fixed in — Not affected CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:*:*:*:*not specified by NVDVulnerableRed Hat
  • cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Red Hat

Remediation

Red Hat 3 advisories

  • RHSA-2026:50847 Released 2026-08-05 · Red Hat rating Important
    Red Hat build of Keycloak 26.4.14 Images Security Update
    • Red Hat build of Keycloak 26.4 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
  • RHSA-2026:50846 Released 2026-08-05 · Red Hat rating Important
    Red Hat build of Keycloak 26.4.14 Security Update
    • Red Hat build of Keycloak 26.4.14
  • RHSA-2026:50848 Released 2026-08-05 · Red Hat rating Important
    Red Hat build of Keycloak 26.6.5 Security Update
    • Red Hat build of Keycloak 26.6.5

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat build of Keycloak 26.4Fixed RHSA-2026:50847
Red Hat build of Keycloak 26.4.14Fixed RHSA-2026:50846
Red Hat build of Keycloak 26.6.5Fixed RHSA-2026:50848

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-4629
  2. 2026-10-03 Alias added: GHSA-m4j4-8chj-8g5f
  3. 2026-10-23 Affected versions changed · CNA
  4. 2026-10-23 1 new reference · CNA
  5. 2026-10-23 Fix available: RHSA-2026:50848 · Red Hat
  6. 2026-10-23 Fix available: Red Hat build of Keycloak 26.6.5 · Red Hat

References

  • TI-2026-02223 Keycloak: keycloak: unauthorized authentication via disabled saml identity provider CVSS 3.1HIGH 8.1
  • TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
  • TI-2026-13740 Keycloak-services: keycloak-services: saml idp-initiated broker login bypasses link-only restriction CVSS 3.1CRITICAL 9.8
  • TI-2026-13741 Keycloak-services: keycloak-services: saml broker metadata import disables response signature validation CVSS 3.1CRITICAL 9.1
  • TI-2026-13106 Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation CVSS 3.1HIGH 8.8
  • TI-2026-02631 Authentication bypass in Red Hat build of Keycloak 26.2 CVSS 3.1HIGH 8.8
See all 110 →

Sources