Skip to content

Privilege Escalation in Keycloak Admin Console (FGAPv2 Enabled)

Moderate
rmartinc published GHSA-27gp-8389-hm4w Jul 29, 2025

Package

maven org.keycloak:keycloak-services (Maven)

Affected versions

>26.2.0, <26.2.6

Patched versions

26.2.6, 26.3.0

Description

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.

Severity

Moderate

CVE ID

CVE-2025-7784

Weaknesses

Improper Privilege Management

The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. Learn more on MITRE.