Bug 2588703 (CVE-2026-142136)

Summary: CVE-2026-142136 keycloak-operator: keycloak-operator: Plaintext credentials exposure in KeycloakRealmImport custom resource
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: 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 Keycloak Operator, which is used to manage Keycloak instances on Kubernetes and OpenShift. The issue occurs because the documentation and default behavior encourage users to include sensitive information, such as client secrets and private keys, directly within the KeycloakRealmImport custom resource. Because these resources are not treated as protected secrets by Kubernetes, an attacker with basic read permissions for the custom resource can recover this sensitive material, potentially leading to full compromise of the Keycloak realm.
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:

Description OSIDB Bzimport 2026-12-02 14:11:05 UTC
A flaw was found in the Keycloak Operator. The vulnerability exists because the KeycloakRealmImport custom resource (CR) allows sensitive realm export data, including client secrets, key-provider secrets, and private keys, to be stored in plaintext within the spec.realm field. In a standard Kubernetes environment, access to Secret objects is strictly controlled; however, permissions to read custom resources are often delegated separately. An attacker with namespaced get permission on keycloakrealmimports.k8s.keycloak.org can retrieve the full CR content, bypassing the lack of access to Kubernetes Secrets. Successful exploitation allows an attacker to recover active reusable client credentials and realm signing or encryption keys, enabling them to impersonate clients, decrypt sensitive data, or gain unauthorized administrative access to the Keycloak realm.