Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.keycloak/keycloak-services
  4. ›
  5. CVE-2025-7784

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

July 30, 2025

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

  • access.redhat.com/errata/RHSA-2025:12015
  • access.redhat.com/errata/RHSA-2025:12016
  • access.redhat.com/security/cve/CVE-2025-7784
  • bugzilla.redhat.com/show_bug.cgi?id=2381861
  • github.com/advisories/GHSA-27gp-8389-hm4w
  • github.com/keycloak/keycloak
  • github.com/keycloak/keycloak/issues/41137
  • github.com/keycloak/keycloak/pull/41168
  • github.com/keycloak/keycloak/security/advisories/GHSA-27gp-8389-hm4w
  • nvd.nist.gov/vuln/detail/CVE-2025-7784

Code Behaviors & Features

Detect and mitigate CVE-2025-7784 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 26.2.0 before 26.2.6

Fixed versions

  • 26.2.6

Solution

Upgrade to version 26.2.6 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-269: Improper Privilege Management

Source file

maven/org.keycloak/keycloak-services/CVE-2025-7784.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:51 +0000.