Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain read RBAC on KeycloakRealmImport CR
-
ExploitEnumerate/get the custom resource via Kubernetes API
-
ExecutionExtract embedded client secrets and private keys
-
ImpactAuthenticate to and compromise the Keycloak realm
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that sensitive material - client secrets and private keys - was actually embedded inline within a KeycloakRealmImport custom resource, which the CVE states is encouraged by the operator's documentation and default behavior. The attacker must hold authenticated Kubernetes/OpenShift read (get/list) RBAC permissions for the KeycloakRealmImport custom resource in the relevant namespace (PR:L); it is not anonymously remotely exploitable. Limiting factors: only secrets that operators chose to place inline are exposed, exposure is scoped to the namespaces/CRs the identity can read, and clusters that store such material in proper Kubernetes Secrets instead are not affected. No user interaction is required (UI:N). |
| Impact | This is a design/documentation-level information disclosure (CWE-200) in the Keycloak Operator, scored CVSS 8.1 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N). The vector indicates a network-reachable (Kubernetes API) attack at low complexity, but critically requires PR:L - the attacker must already hold valid, authenticated read access (RBAC) to the KeycloakRealmImport custom resource. There is no public exploitation signal to amplify this: no EPSS score was supplied, the CVE is not in CISA KEV, and no public exploit identified at time of analysis. The vuln.today decision label is 'this_week' rather than act_now/emergency, which is consistent with a real-but-not-urgent priority. The high C:H/I:H impact is justified because embedded client secrets and private keys can yield full realm compromise, but the practical risk is gated by the insider/authorized-user prerequisite rather than anonymous remote access. Net: a genuine issue worth remediating this week, driven by impact and ease once access exists, not by evidence of widespread opportunistic exploitation. Note the PR:L rating depends on how permissive RBAC is in a given cluster - 'basic read permissions' on a CR may be broadly granted in practice, which could make exposure wider than the vector alone implies. |
| Exploit ScenarioDerived | A user, service account, or compromised workload that holds read access to KeycloakRealmImport custom resources in a namespace lists or gets the resource and reads the client secrets and private keys that were embedded inline per the operator's documented default behavior. Because the CR is not a Kubernetes Secret object, this material is exposed to anyone with ordinary read RBAC rather than being restricted to secret-level access. No public exploit is required - the data is retrievable with standard kubectl/API reads. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
The Keycloak Operator for Kubernetes and OpenShift encourages operators to place sensitive material - client secrets and private keys - inline inside KeycloakRealmImport custom resources, which Kubernetes does not treat as protected Secrets, so any identity holding basic get/list RBAC on that custom resource can recover the material and potentially take full control of the Keycloak realm. The flaw is scored CVSS 8.1 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N), reflecting an authenticated attacker with low privileges and read access to the CR rather than anonymous remote access; exposure is limited to secrets actually embedded inline and to the namespaces and CRs the identity can read, and clusters that keep such material in proper Kubernetes Secrets are not affected. No public exploit code was identified at time of analysis and the issue is not in CISA KEV; the priority label is 'this_week', so remediation should be scheduled promptly but is not an emergency patch-now situation.
RemediationAI
No fixed operator version is listed in the available advisory data, so confirm patch status and any updated release through the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-142136 and Bugzilla 2588703 before planning the upgrade. In the meantime the effective mitigation is to stop placing sensitive values inline in KeycloakRealmImport resources: move client secrets and private keys into Kubernetes Secret objects and reference them from the custom resource, then purge the inline values from the CR spec - note that this is a configuration change requiring a re-import or CR update, and any secret previously stored inline should be treated as compromised and rotated, with the side effect that clients using the rotated credentials must be updated or they will fail authentication. Tighten RBAC so that get/list/watch on keycloakrealmimports is limited to the smallest set of identities that genuinely need it and scoped to the namespaces that require it, explicitly preserving the operator's own service account access so reconciliation does not break; the trade-off is that developers and CI pipelines that previously read realm imports will lose that visibility. Audit existing KeycloakRealmImport objects across the cluster for embedded secret material, and remember that copies may persist in Git history, backups, etcd snapshots and audit logs even after the CR is cleaned, so those stores should be reviewed and purged as well.
Affected ProductsAI
The affected component is the Keycloak Operator used to manage Keycloak instances on Kubernetes and OpenShift, in configurations where client secrets or private keys are embedded inline within KeycloakRealmImport custom resources, as encouraged by the operator's documentation and default behaviour. The available advisory data does not list specific operator or Keycloak version ranges, and no CPE identifiers were provided, so version-level scoping must be confirmed against the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-142136 and the tracking Bugzilla at https://bugzilla.redhat.com/show_bug.cgi?id=2588703. Clusters that already store realm credentials in dedicated Kubernetes Secret objects and merely reference them from the KeycloakRealmImport spec are not affected by this exposure, and exposure in affected clusters is further limited to the namespaces and custom resources readable by the attacker's identity.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
KeycloakRealmImport is a Kubernetes custom resource definition (CRD) managed by the Keycloak Operator to declaratively import realm configuration, including clients and their credentials. Because custom resources are ordinary API objects rather than core v1 Secret objects, they receive none of the protections Kubernetes applies to Secrets: they are not redacted in kubectl output, are returned in full by the API server to any principal with get/list/watch on the resource, and are commonly captured in GitOps repositories, backups and audit tooling. The root cause is CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) at the design and documentation level: the operator's guidance and default behaviour steer users toward specifying client secrets and private keys directly in the CR spec instead of referencing an existing Secret. The practical consequence is that the effective security boundary becomes Kubernetes RBAC on keycloakrealmimports rather than RBAC on Secrets, which is typically granted far more broadly (for example to developers, CI service accounts and read-only cluster roles). The CVSS vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N confirms the attacker must already be authenticated with low privileges, requires no user interaction, and gains high confidentiality and integrity impact once secrets are recovered, since a compromised client secret or realm private key undermines the trust relationships the realm depends on. No CPE strings were supplied with the advisory data, so version-level product mapping cannot be confirmed from the available sources, and the trigger conditions beyond inline secret placement are not described in the available sources.
Know when Kubernetes gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Reachable via the Kubernetes API (AV:N) with low complexity, but requires existing authenticated read RBAC on the CR (PR:L); disclosed secrets enable realm takeover (C:H/I:H), no availability impact (A:N).
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
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.
Articles & Coverage 2
Executive ViewAI
The Keycloak Operator's guidance to store client secrets and private keys inline within KeycloakRealmImport custom resources exposes these credentials to any user with basic read access to those resources, potentially enabling full Keycloak realm compromise. This high-severity flaw affects organizations using the Keycloak Operator for Kubernetes/OpenShift and could lead to unauthorized access to sensitive identity systems, impacting business operations and data confidentiality.
No vendor-released patch identified at time of analysis. Interim mitigation: store sensitive material in Kubernetes Secrets and reference them from KeycloakRealmImport resources; restrict RBAC access to KeycloakRealmImport custom resources to only trusted identities; rotate any potentially exposed secrets.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Kubernetes
View allA critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c
Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter
A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne
Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai
The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4
Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
EUVD-2026-141500
GHSA-q94p-v422-8jjr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB