CVE-2026-136703 in Keycloakinfo

Summary

by MITRE • 11/25/2026

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.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in Keycloak's Admin REST API v2 represents a critical authentication bypass mechanism that leverages improper authorization checks to facilitate information disclosure through side-channel analysis. This flaw resides within the endpoint responsible for handling client configuration updates via HTTP PUT requests, a function typically reserved for users with administrative privileges who manage realm configurations and associated clients. The core technical deficiency lies in the sequence of operations performed by the server during request processing. Specifically, the API executes payload validation logic before conducting any authorization checks to determine if the authenticated caller possesses the necessary permissions to access or modify the target client resource. This ordering error creates a predictable divergence in response codes that can be exploited by attackers with minimal privileges.

When an unprivileged user attempts to update a client configuration using this endpoint, the server first validates the structure and content of the request body against expected schemas. If the provided data is malformed or violates schema constraints, the server immediately returns a 400 Bad Request error regardless of whether the target client ID actually exists in the system. Conversely, if the payload is syntactically valid but refers to a non-existent client, the validation phase passes successfully. The request then proceeds to the authorization layer, where the system verifies permissions and ultimately rejects the operation due to insufficient privileges, resulting in a 403 Forbidden response. This distinct difference between a 400 error for invalid data on an existing or non-existing client and a 403 error for valid data on a non-existent client allows attackers to enumerate valid client identifiers within a realm without requiring administrative access.

This behavior constitutes an information disclosure vulnerability that aligns with CWE-284, which describes Improper Access Control where insufficient authorization checks allow unauthorized actors to gain information about the system state. Furthermore, this exploitation technique maps directly to ATT&CK tactic T1087, specifically sub-technique T1087.001 for Account Discovery on local systems or cloud environments. By systematically iterating through potential client IDs and analyzing the HTTP status codes returned by the API, an attacker can build a comprehensive map of valid clients within a Keycloak realm. This enumeration is often a precursor to more severe attacks, such as credential stuffing against discovered accounts, privilege escalation attempts targeting specific high-value clients, or further exploitation of other vulnerabilities tied to those identified resources.

The operational impact of this vulnerability extends beyond simple reconnaissance. The ability to accurately identify existing versus non-existing entities undermines the security boundary intended by Keycloak's role-based access control model. Attackers can use this information to refine subsequent attack vectors, reducing noise and increasing the success rate of brute-force or injection attacks against specific targets. In environments where client configurations contain sensitive metadata or are linked to critical business applications, exposing these identifiers aids adversaries in prioritizing their efforts and understanding the architecture of the identity management infrastructure.

Mitigation strategies must address both the immediate technical flaw and broader security posture improvements. The primary remediation involves reordering the request processing pipeline within the Admin REST API v2 implementation so that authorization checks are performed prior to payload validation or ensuring that error responses for invalid payloads do not leak information about resource existence. For organizations unable to immediately patch this issue, implementing strict rate limiting on administrative endpoints can significantly slow down enumeration attempts. Additionally, deploying Web Application Firewalls with rules designed to detect and block patterns indicative of IDOR or enumeration attacks provides a layer of defense in depth. It is also recommended to enforce the principle of least privilege by ensuring that API keys and tokens are scoped narrowly, preventing unprivileged users from accessing administrative endpoints altogether unless absolutely necessary for their role. Regular auditing of access logs can help identify attempts at this type of reconnaissance activity early in an attack chain.

Responsible

Redhat

Reservation

11/25/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00424

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!