REDHAT-BUG-2583968: Medium severity Keycloak Keycloak Admin REST API vulnerability

Published Nov 25, 2026
·
Updated

A response discrepancy information leak was discovered in the Keycloak Admin REST API v2 clients endpoint. The root cause is the order of operations in the path resolver and the update function. When a PUT request is sent to /admin/api/{realm}/clients/v2/{target-id}, the server validates the consistency of the clientId in the request body against the target-id in the URL before performing the per-client authorization check. If an authenticated attacker with no client view or manage permissions sends a PUT request where the body contains a different clientId than the URL path, the server returns a 400 Bad Request if the target-id exists in the database. If the target-id does not exist, the path resolver fails earlier and returns a 403 Forbidden. This discrepancy allows an attacker to reliably enumerate or confirm the existence of client IDs within a realm.

Affected Software

1 affected component
Keycloak Keycloak Admin REST API

Event History

Nov 25, 2026
Data Sourced
via Red Hat·07:17 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

An attacker must be authenticated to the Keycloak Admin REST API. The attacker does not need client view or manage permissions, but must be able to send PUT requests to the v2 clients endpoint for a realm.

2

What request behavior exposes whether a client exists?

The attacker sends a PUT request with a clientId in the request body that differs from the target ID in the URL. A 400 Bad Request indicates that the target client ID exists, while a 403 Forbidden indicates that it does not exist.

3

What information can be obtained?

The discrepancy can be used to enumerate or confirm client IDs within a realm. The provided information does not indicate exposure of client secrets, configuration details, or other client data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203