CVE-2026-136451 in Keycloak
Summary
by MITRE • 11/25/2026
A flaw was found in the Keycloak Operator. Deterministic hashes derived from Kubernetes Secrets are published in generated StatefulSet metadata and in KeycloakOIDCClient status. A user with read access to those resources may be able to recover a low-entropy credential referenced by a Secret, even when Kubernetes RBAC denies the user access to the Secret itself.
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 within the Keycloak Operator represents a significant information disclosure flaw rooted in improper handling of sensitive data during resource generation and status updates. The core technical issue lies in how deterministic hashes are derived from Kubernetes Secrets and subsequently embedded into other observable resources, specifically StatefulSet metadata and the KeycloakOIDCClient status field. In standard cryptographic practices, secrets should never be directly exposed or derivatively published in plaintext or easily reversible formats within publicly accessible resource definitions. However, this implementation creates a side channel where the internal state of a secret influences external attributes that are often more broadly readable than the secret itself. This design oversight allows an attacker to leverage these deterministic outputs as a vector for credential recovery, bypassing intended access controls through indirect observation rather than direct exploitation of the protected resource.
The operational impact of this flaw is particularly severe due to its ability to circumvent Kubernetes Role-Based Access Control (RBAC) policies. In many enterprise environments, RBAC configurations are meticulously designed to restrict read access to sensitive Secrets while granting broader permissions for managing workloads like StatefulSets or custom resources such as KeycloakOIDCClient instances. An attacker with only read privileges on these workload-related resources can extract the deterministic hashes published in their metadata and status fields. By analyzing these values, which serve as a proxy for the underlying secret content, it is possible to perform offline brute-force attacks against low-entropy credentials. This effectively nullifies the security boundary established by RBAC, allowing unauthorized users to recover sensitive authentication material without ever needing direct permission to view the Secret object itself.
This vulnerability aligns with CWE-209, which describes the generation of an error message that includes stack trace information from a software product, or more broadly in this context, CWE-359: Exposure of Private Information Within an Email Message or Log File, as it involves the unintended exposure of sensitive data through system outputs. Furthermore, the attack vector corresponds to ATT&CK technique T1087.004, specifically Account Discovery via Local API on Cloud Infrastructure, where adversaries enumerate and access credentials from cloud service APIs. The deterministic nature of the hash generation means that if an attacker can observe multiple instances or updates, they may further refine their ability to reverse-engineer the original secret values, especially when those secrets consist of predictable patterns such as default passwords or simple strings commonly used in development environments.
Mitigation strategies must focus on breaking the link between sensitive secret data and publicly observable resource attributes. The primary remediation involves ensuring that StatefulSet metadata and KeycloakOIDCClient status fields do not contain any derived values from Kubernetes Secrets, particularly those involving cryptographic hashes of secret contents. If deterministic identifiers are necessary for operational purposes, they should be generated independently of the secret's actual value to prevent correlation attacks. Additionally, organizations should audit their RBAC policies to ensure that even indirect exposure vectors are monitored and restricted where possible. Implementing strict validation in the operator codebase to sanitize these fields before publication is critical. Until a patch is applied, administrators should treat any resource exposing such hashes as compromised regarding confidentiality guarantees and limit access to those resources strictly to privileged accounts with explicit need-to-know justification.