Bug 2583968 (CVE-2026-136703)
| Summary: | CVE-2026-136703 keycloak-services: keycloak-services: Admin API v2 client PUT reveals client-ID existence to unauthorized callers | ||
|---|---|---|---|
| Product: | [Other] Security Response | Reporter: | OSIDB Bzimport <bzimport> |
| Component: | vulnerability | Assignee: | Product Security <prodsec-ir-bot> |
| Status: | NEW --- | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | aschwart, aszczucz, boliveir, drichtar, mposolda, pjindal, rmartinc, ssilvert, sthorger, vmuzikar |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: |
A flaw was found in the Admin REST API v2 of Keycloak. This component is used by administrators to manage realm configurations, including clients. The issue occurs because the API processes a client update (PUT) request and performs payload validation before verifying if the caller has the required permissions to view or manage that specific client. By sending a request with a mismatched client ID in the body, an authenticated user without any administrative privileges can distinguish between existing and non-existing clients based on whether the server returns a 400 Bad Request or a 403 Forbidden error.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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.