# CVE-2026-4629: Keycloak: keycloak: privilege escalation through hardcoded role mapper injection

- Severity: Medium 6.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-30T12:00:28.631Z
- Modified: 2026-11-25T16:17:52.280Z
- Weaknesses: CWE-266
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- keycloak: up to 26.2.16; from 26.3.0 up to 26.3.5; from 26.4.0 before 26.4.14; from 26.5.0 up to 26.5.7; from 26.6.0 before 26.6.5; from 26.7.0 before 26.7.1
- rhbk/keycloak-operator-bundle: no versions given (not affected: from 26.4.14-1 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 26.4-22 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 26.4-22 before *)
- Red Hat Red Hat build of Keycloak 26.6.5: no versions given
- redhat build_of_keycloak: no versions given

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2450244> (exploit, issue-tracking, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:50846> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:50847> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:50848> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-4629> (vdb-entry, vendor-advisory)

## Sources

- CVE List: [CVE-2026-4629](https://www.cve.org/CVERecord?id=CVE-2026-4629), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-4629](https://nvd.nist.gov/vuln/detail/CVE-2026-4629), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-4629 · Whole record: https://cve.day/CVE-2026-4629.json · Rebuilt by cve.day 2026-11-25T23:18:20.176Z
