Keycloak Relative Path Vulnerability in Admin Console Access via HAProxy

Vulnerability

A vulnerability exists in Keycloak when the admin path is exposed to the outside while using a proxy, such as HAProxy. This configuration can be exploited by using relative, non-normalized paths to access the admin application relative to the realms path, which is intended to be exposed. As a result, the admin console may be accessible when it should not be, creating a potential security risk.

Impact

Exposing the admin console path can lead to unauthorized access, allowing users to interact with the admin interface without proper authorization.

Reproduction

To reproduce this vulnerability, configure Keycloak to use HAProxy as a reverse proxy. Then, send a request to the realms path using the 'path-as-is' option to include a relative path traversal sequence that accesses the admin console. This will bypass the intended path restrictions and expose the admin interface.

Added: Oct 28, 2025, 4:17 AM
Updated: Oct 28, 2025, 4:17 AM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
5.0
exploitability
6.8
remediation
7.9
relevance
0.8
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.