GitHub Advisoryadvisory · Maven

GHSA-27gp-8389-hm4w Keycloak Privilege Escalation Vulnerability in Admin Console (FGAPv2 Enabled)

MEDIUM Published 2025-07-30 Modified 2025-07-30 Official page ↗
Aliases
CVE-2025-7784
Ecosystem
Maven
Packages
org.keycloak:keycloak-services
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Weaknesses
CWE-269
Reviewed
2025-07-30

Affected packages

• Maven org.keycloak:keycloak-services: >= 26.2.0, < 26.2.6 → fixed in 26.2.6

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. This issue has been fixed in versions 26.2.6, and 26.3.0.

Related

Alias · CVE (1)

  • CVE-2025-7784 A flaw was found in the Keycloak identity and access management system when Fine-Grained Admin Permissions(FGAPv2) are enabled. vulnerability

Weakness · CWE (1)

  • CWE-269 Improper Privilege Management weakness

References