Skip to content
Threat Brief

← All advisories

CVE-2026-4629

Medium 6.5No known exploitationFix status unknown

Keycloak: keycloak: privilege escalation through hardcoded role mapper injection

Record last updated

CVSS score

6.5

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.5%

Higher than 35% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-266

Patching and mitigation

Patch status
Unknown: no source documents a fix
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. Source (opens in a new tab)
Vendor guidance
access.redhat.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
redhatbuild_of_keycloakNot documentedNot documentedNIST NVD
Red HatRed Hat build of Keycloak 26.4 (unaffected)26.4-22Not documentedCVE Program
Red HatRed Hat build of Keycloak 26.4 (unaffected)26.4-22Not documentedCVE Program
Red HatRed Hat build of Keycloak 26.4 (unaffected)26.4.14-1Not documentedCVE Program
Red HatRed Hat build of Keycloak 26.4.14 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat build of Keycloak 26.6.5 (status unknown)Not documentedNot documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by redhat

    Source: CVE Program (opens in a new tab)

Vendor guidance and references