Skip to main content

Keycloak CVE-2025-7784

MEDIUM
Improper Privilege Management (CWE-269)
2025-07-18 secalert@redhat.com
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as manage-users admin
  2. Delivery
    Invoke realm-admin role escalation API/UI
  3. Exploit
    Bypass FGAPv2 permission validation
  4. Execution
    Obtain realm-admin privileges
  5. Persist
    Modify realm policies or create privileged accounts
  6. Impact
    Compromise dependent applications

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

CRITICAL prerequisite: Fine-Grained Admin Permissions v2 (FGAPv2) must be explicitly enabled in the Keycloak realm configuration. Additionally, the attacker must possess a valid administrative account with at minimum the manage-users role already assigned. Without both conditions, the escalation path does not exist. Standard Keycloak deployments without FGAPv2 enabled are NOT vulnerable. The vulnerability requires authenticated access (PR:H); unauthenticated remote attackers cannot exploit this. No user interaction is required beyond the attacker's own administrative actions. Exploitation is NOT dependent on non-default configuration beyond FGAPv2 enablement; the flaw exists in the FGAPv2 authorization enforcement logic itself.

Impact

CVSS 6.5 (PR:H/AC:L/AV:N/S:U) indicates moderate-to-high severity with high-privilege attacker requirement but low complexity and network accessibility. The attack vector is network-based, meaning exploitation does not require local access or system compromise prior to the privilege escalation attempt. The privilege requirement (PR:H) significantly limits the attack surface to already-authenticated administrators with manage-users role. EPSS data is not provided, limiting probabilistic exploitation assessment. The vulnerability is not listed as actively exploited in CISA KEV, and no public proof-of-concept has been identified. However, the risk is REAL and contextual: any organization deploying Keycloak with FGAPv2 enabled faces direct risk from insider threats (rogue administrators) or external attackers who have compromised lower-privileged admin accounts. The confidence and integrity impact (C:H/I:H) means successful exploitation grants full realm-admin authority, enabling account takeovers, policy manipulation, and data exfiltration across all realm-managed applications. This is a privilege-escalation-by-design-flaw rather than a network-reachable zero-day, making it a MUST-PATCH for FGAPv2 users but a lower priority for standard Keycloak deployments without FGAPv2 enabled.

Exploit ScenarioDerived

An administrator with manage-users role (permitted to create, modify, and delete user accounts) logs into Keycloak's admin console and, leveraging the improper privilege enforcement in FGAPv2, directly escalates their own role to realm-admin without explicit realm-admin authorization. Once elevated, the attacker gains full administrative authority: modifying realm policies, creating backdoor accounts, changing password reset flows, or integrating malicious identity providers to compromise all applications relying on the Keycloak realm.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 06, 2026

Privilege escalation in Keycloak's Fine-Grained Admin Permissions v2 (FGAPv2) allows administrative users with the manage-users role to escalate privileges to realm-admin through improper privilege enforcement. When FGAPv2 is enabled, this vulnerability enables unauthorized elevation of administrative access rights, compromising the separation of administrative duties. No public exploit code or active exploitation has been identified at the time of analysis.

RemediationAI

Apply security updates from Red Hat via RHSA-2025:12015 or RHSA-2025:12016 (https://access.redhat.com/errata/RHSA-2025:12015, https://access.redhat.com/errata/RHSA-2025:12016). The exact patched version number is not provided in available data; consult the Red Hat advisories for the specific version to upgrade to. As an interim compensating control, disable Fine-Grained Admin Permissions v2 (FGAPv2) if not operationally required-this eliminates the vulnerability entirely while maintaining standard Keycloak RBAC. If FGAPv2 must remain enabled, restrict the assignment of manage-users role only to fully trusted administrators and enforce strong authentication (MFA) for all administrative accounts. Monitor administrative privilege escalation attempts by auditing role assignment and realm-admin privilege grants. Note that disabling FGAPv2 may reduce authorization granularity, requiring workflow re-evaluation; patch application is the preferred remediation path.

Affected Packages

maven org.keycloak:keycloak-services fix: 26.2.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Keycloak is an open-source identity and access management (IAM) system providing authentication, authorization, and user management capabilities. Fine-Grained Admin Permissions v2 (FGAPv2) is an advanced authorization feature designed to enforce granular role-based access control (RBAC) for administrative operations. The vulnerability stems from CWE-269 (Improper Access Control) in the authorization enforcement logic of FGAPv2. Specifically, the manage-users administrative role does not properly validate permission boundaries when escalating to realm-admin privileges, allowing cross-role privilege elevation. This affects Red Hat's build of Keycloak (CPE: cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:*), indicating the issue exists in the distribution maintained by Red Hat.

Know when Build Of Keycloak gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Red Hat 6.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Affected Products (CPE)CVE.org

cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:*
CVE-2024-8883 MEDIUM POC
6.1 Sep 19

A misconfiguration flaw was found in Keycloak. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploita

CVE-2026-3047 HIGH
8.8 Mar 05

Keycloak's SAML identity provider broker fails to enforce client disabled status during IdP-initiated SSO flows, allowin

CVE-2026-9704 HIGH
8.8 May 27

Privilege escalation in Red Hat Build of Keycloak allows low-privileged authenticated users to assume the permissions of

CVE-2024-1132 HIGH POC
8.1 Apr 17

A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. Rated high severity (CVSS

CVE-2026-3009 HIGH
8.1 Mar 05

Keycloak's IdentityBrokerService.performLogin endpoint fails to enforce disabled Identity Provider restrictions, allowin

CVE-2024-7885 HIGH
7.5 Aug 21

A vulnerability was found in Undertow where the ProxyProtocolReadListener reuses the same StringBuilder instance across

CVE-2024-7341 HIGH
7.1 Sep 09

A session fixation issue was discovered in the SAML adapters provided by Keycloak. Rated high severity (CVSS 7.1), this

CVE-2024-10234 HIGH
7.3 Oct 22

A vulnerability was found in Wildfly, where a user may perform Cross-site scripting in the Wildfly deployment system. Ra

CVE-2026-9802 MEDIUM
6.8 May 28

Refresh token replay in Keycloak allows a remote attacker who has previously captured a user's refresh token to reuse th

CVE-2024-4629 MEDIUM
6.5 Sep 03

A vulnerability was found in Keycloak. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no

CVE-2024-7260 MEDIUM
6.1 Sep 09

An open redirect vulnerability was found in Keycloak. Rated medium severity (CVSS 6.1), this vulnerability is remotely e

CVE-2025-3910 MEDIUM
5.4 Apr 29

A flaw was found in Keycloak. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, no authentic

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy