Summary
A flaw was found in the Keycloak Operator (Red Hat Build of Keycloak), used to manage Keycloak instances on Kubernetes and OpenShift. The documentation and default behavior encourage users to place sensitive data, such as client secrets and private keys, directly in the KeycloakRealmImport custom resource. Kubernetes does not treat these resources as protected Secrets, so the data is stored and readable in plaintext.
Per the CVSS vector (8.1, high), the attack is network-based, low complexity and requires no user interaction, but the attacker needs at least basic read permissions on the KeycloakRealmImport resource. With that access they can recover secrets and keys, potentially leading to full compromise of the Keycloak realm (high confidentiality and integrity impact).
The vulnerability is not listed in the CISA KEV catalog. Red Hat states no mitigation currently meets its criteria, and no fixed versions are listed in the record.
Who is affected
Organizations running the Keycloak Operator / Red Hat Build of Keycloak on Kubernetes or OpenShift that import realms via KeycloakRealmImport resources.
What to do
- Monitor the official Red Hat advisory (access.redhat.com/security/cve/CVE-2026-142136) and Bugzilla 2588703 for a fixed version, as none is listed in the record.
- Review existing KeycloakRealmImport resources to determine whether they contain client secrets, private keys or other credentials in plaintext.
- Audit RBAC: restrict read permissions (get/list/watch) on KeycloakRealmImport resources to strictly required users and service accounts.
- If sensitive data may have been exposed, rotate affected client secrets and realm keys and review API server access logs.
Vendor workaround
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- None
Weakness type (CWE)
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.