# CVE-2026-9795: Keycloak: keycloak: privilege escalation via improper scope mapping enforcement

- Severity: High 7.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/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.35%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-05-28T03:49:10.874Z
- Modified: 2026-10-26T12:10:00.130Z
- Also known as: GHSA-32h4-44jj-c5vx
- Weaknesses: CWE-266
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

A flaw was found in Keycloak's Fine-Grained Admin Permissions (FGAPv2) feature. An administrator with limited client management permissions can exploit this vulnerability to assign any realm role, including highly privileged roles, to a client's scope mapping. This bypasses intended security controls, allowing the injected role to be projected into a user's authentication token when they access the modified client. This could lead to unauthorized privilege escalation within the Keycloak realm.

(As written by CVE List.)

## Affected

- rhbk/keycloak-operator-bundle: no versions given (not affected: from 26.4.13-1 before *; from 26.6.4-2 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 26.4-19 before *; from 26.6-8 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 26.4-19 before *; from 26.6-8 before *)
- org.keycloak:keycloak-services (Maven): before 26.6.4
- redhat build_of_keycloak: no versions given

## Every score

- redhat: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N`
- redhat-SADP: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2026:30049> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:30050> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:30083> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:30084> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-9795> (mitigation, vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2482462> (issue-tracking, vendor-advisory, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9795.json> (web)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-32h4-44jj-c5vx> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-9795> (advisory)
- <https://github.com/keycloak/keycloak/issues/50350> (web)
- <https://github.com/keycloak/keycloak/pull/50451> (web)
- <https://github.com/keycloak/keycloak/commit/8894c027e788904c740ff9a1a60fcfaa34a10d13> (web)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2026-9795](https://www.cve.org/CVERecord?id=CVE-2026-9795), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-32h4-44jj-c5vx](https://github.com/advisories/GHSA-32h4-44jj-c5vx), CC-BY-4.0, modified 2026-07-01
- NVD: [CVE-2026-9795](https://nvd.nist.gov/vuln/detail/CVE-2026-9795), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-9795 · Whole record: https://cve.day/CVE-2026-9795.json · Rebuilt by cve.day 2026-11-25T22:59:22.731Z
