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.
{
"cna_assigner": "redhat",
"cwe_ids": [
"CWE-266"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4629.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "26.4.14-1"
},
{
"fixed": "26.4-22"
},
{
"fixed": "26.4-22"
}
],
"source": "AFFECTED_FIELD",
"strategy": "InverseAffectedRanges"
}
]
}
]
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "26.2.16"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "26.3.0"
},
{
"last_affected": "26.3.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "26.4.0"
},
{
"fixed": "26.4.14"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "26.5.0"
},
{
"last_affected": "26.5.7"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "26.6.0"
},
{
"fixed": "26.6.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "26.7.0"
},
{
"fixed": "26.7.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}