Vulnerability · Published Jul 18, 2025 · Assigned by redhat
CVE-2025-7784Org.keycloak/keycloak-services: privilege escalation in keycloak admin console (fgapv2 enabled)
Medium 6.5
In plain English
A medium-severity privilege mismanagement in keycloak. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A flaw was found in the Keycloak identity and access management system when Fine-Grained Admin Permissions(FGAPv2) are enabled. An administrative user with the manage-users role can escalate their privileges to realm-admin due to improper privilege enforcement. This vulnerability allows unauthorized elevation of access rights, compromising the intended separation of administrative duties and posing a security risk to the realm.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.keycloak:keycloak-services | 26.2.6 | GHSA-27gp-8389-hm4w |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| keycloak | 0 – before 26.2.6 | |
| Red Hat | Red Hat build of Keycloak 26 | see references |
| Red Hat | Red Hat build of Keycloak 26.2 | see references |
| Red Hat | Red Hat build of Keycloak 26.2 | see references |
| Red Hat | Red Hat build of Keycloak 26.2 | see references |
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | see references |
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | see references |
| Red Hat | Red Hat Single Sign-On 7 | see references |
Weakness: CWE-269 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
References
- RHSA-2025:12015 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:12016 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-7784 vdb-entry, x_refsource_REDHAT
- RHBZ#2381861 issue-tracking, x_refsource_REDHAT
- https://github.com/keycloak/keycloak/issues/39956