REDHAT-BUG-2588703: High severity Red Hat Keycloak Operator vulnerability

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
Red Hat Keycloak Operator

Event History

Dec 2, 2026
Data Sourced
via Red Hat·02:11 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Clusters using the Keycloak Operator are exposed where KeycloakRealmImport resources contain realm export data and users or service accounts have namespaced get permission on keycloakrealmimports.k8s.keycloak.org. Those principals may not need Kubernetes Secret access.

2

What does an attacker need to exploit it?

An attacker needs permission to read KeycloakRealmImport custom resources in the relevant namespace. Reading the resource can reveal plaintext client secrets, key-provider secrets, and private keys from spec.realm.

3

What can an attacker do with the recovered data?

Recovered credentials and keys may allow an attacker to impersonate clients, decrypt sensitive data, or obtain unauthorized administrative access to the affected Keycloak realm.

4

How can I determine whether sensitive data may already be exposed?

Review KeycloakRealmImport resources for sensitive realm export data stored in spec.realm, then review which users and service accounts have namespaced get access to keycloakrealmimports.k8s.keycloak.org. Any such principal could retrieve the full custom resource content.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203