NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2025-7784: Keycloak Privilege Escalation Vulnerability in Admin Console (FGAPv2 Enabled)

mediumCVSS 3.1 6.5GHSA-27gp-8389-hm4w

A Privilege Escalation vulnerability was identified in the Keycloak identity and access management solution, specifically when FGAPv2 is enabled in version 26.2.x. The flaw lies in the admin permission enforcement logic, where a user with manage-users privileges can self-assign realm-admin rights. The escalation occurs due to missing privilege boundary checks in role mapping operations via the admin REST interface.

Published Jul 30, 2025

Affected packages

org.keycloak:keycloak-services

Ecosystem
Maven
Affected
>= 26.2.0, < 26.2.6
Fixed in
26.2.6
Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-services

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

A Privilege Escalation vulnerability was identified in the Keycloak identity and access management solution, specifically when FGAPv2 is enabled in version 26.2.x. The flaw lies in the admin permission enforcement logic, where a user with manage-users privileges can self-assign realm-admin rights. The escalation occurs due to missing privilege boundary checks in role mapping operations via the admin REST interface. A malicious administrator with limited permissions can exploit this by editing their own user roles, gaining unauthorized full access to realm configuration and user data.

This issue has been fixed in versions 26.2.6, and 26.3.0.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries