Skip to main content

Keycloak Operator EUVDEUVD-2026-141500

| CVE-2026-142136 HIGH
Information Exposure (CWE-200)
2026-12-02 secalert@redhat.com GHSA-q94p-v422-8jjr
8.1
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain read RBAC on KeycloakRealmImport CR
  2. Exploit
    Enumerate/get the custom resource via Kubernetes API
  3. Execution
    Extract embedded client secrets and private keys
  4. Impact
    Authenticate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (redhat) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 8.1 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.5%
Top 54% exploitable
Prevalence
Medium
Keycloak is popular IAM, but the Operator with inline realm-import CRs is a subset deployment
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

CVE-2025-1097 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c

CVE-2020-8554 MEDIUM POC
6.3 Jan 21

Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter

CVE-2023-3676 HIGH POC
8.8 Oct 31

A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate

CVE-2025-55190 CRITICAL POC
9.9 Sep 04

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne

CVE-2026-34976 CRITICAL POC
10.0 Apr 02

Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

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

CVE-2026-54680 CRITICAL POC
9.9 Jul 29

Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can

CVE-2025-64709 CRITICAL POC
9.9 Nov 13

Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy