ADVISORIES

GitHub Advisory Database

GHSA-f5p5-6xmx-p252

Keycloak vulnerable to authorization bypass via incorrect uri comparison

Details

Description

A flaw was found in Keycloak Policy Enforcer. This vulnerability allows any authenticated user to bypass all authorization policies, including role, scope, and User-Managed Access (UMA) permission checks. By including the configured access-denied page path within a request URL, either as a path segment or a query parameter, an attacker can gain unauthorized access to protected resources.

Affected packages

EcosystemPackageAffected versions
Mavenorg.keycloak:keycloak-services
All versions before 26.6.4 (fixed in 26.6.4)
Mavenorg.keycloak:keycloak-policy-enforcer
All versions before 26.0.10 (fixed in 26.0.10)

References