VDB
Sign up
MEDIUM5.4

GHSA-fm6w-rrp3-2x4w

Keycloak Affected by Broken Access Control Vulnerability in the UserManagedPermissionService

Quick fix

GHSA-fm6w-rrp3-2x4w — org.keycloak:keycloak-services: upgrade to the fixed version with the command below.

# pom.xml: bump <version>26.2.13</version> for org.keycloak:keycloak-services

Details

A flaw was found in Keycloak. A significant Broken Access Control vulnerability exists in the UserManagedPermissionService (UMA Protection API). When updating or deleting a UMA policy associated with multiple resources, the authorization check only verifies the caller's ownership against the first resource in the policy's list. This allows a user (Owner A) who owns one resource (RA) to update a shared policy and modify authorization rules for other resources (e.g., RB) in that same policy, even if those other resources are owned by a different user (Owner B). This constitutes a horizontal privilege escalation.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.keycloak:keycloak-services
Introduced in: 0Fixed in: 26.2.13
Fix# pom.xml: bump <version>26.2.13</version> for org.keycloak:keycloak-services
Maven/org.keycloak:keycloak-services
Introduced in: 26.5.0Fixed in: 26.5.3
Fix# pom.xml: bump <version>26.5.3</version> for org.keycloak:keycloak-services
Maven/org.keycloak:keycloak-services
Introduced in: 26.3.0Fixed in: 26.4.9
Fix# pom.xml: bump <version>26.4.9</version> for org.keycloak:keycloak-services

References