CVE-2025-29781
Public on
Last Modified:
Description
A flaw was found in the Bare Metal Operator (BMO) Kubernetes API component. BMO enables users to load Secrets from arbitrary namespaces upon deployment of the namespace-scoped Custom Resource BMCEventSubscription. In affected versions, an adversary using a Kubernetes account with only namespace level roles (e.g. a tenant controlling a namespace) may create a BMCEventSubscription in their authorized namespace and then load Secrets from their unauthorized namespaces to another authorized namespace via the Baremetal Operator, which can lead to the exposure of secrets and credential information.
Statement
This vulnerability is rated as Important for OpenShift Baremetal Operator, because RBAC is cluster-scoped and, while WATCH_NAMESPACE is set to openshift-machine-api by default, it is common for deployments to have a less restrictive value configured. It breaks Kubernetes' namespace isolation by allowing a user to create a BMCEventSubscription that references Secrets from unauthorized namespaces. In OpenShift, where Secrets often store high-value assets like kubeadmin credentials or cloud API keys, this enables unauthorized access to sensitive data across tenant boundaries. It effectively becomes a horizontal privilege escalation vector, allowing a namespace-scoped user to exfiltrate secrets intended for other components or tenants. Given the minimal exploit complexity and high-impact potential, especially in multi-tenant environments, this issue is more severe than a moderate flaw and justifies a high CVSS rating.
Mitigation
Operator can configure BMO role-based access control (RBAC) to be namespace scoped instead of cluster scoped to prevent BMO from accessing Secrets from other namespaces, or use the `WATCH_NAMESPACE` configuration option to limit BMO to a single namespace.
Additional Information
- This content is not included.Bugzilla 2353041: baremetal-operator/apis: Bare Metal Operator (BMO) can expose any secret from other namespaces via BMCEventSubscription CRD
- Content from cwe.mitre.org is not included.CWE-653: Improper Isolation or Compartmentalization
- FAQ: Frequently asked questions about CVE-2025-29781
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2025-29781
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2025-29781
Content from github.com is not included.https://github.com/metal3-io/baremetal-operator/pull/2321
Content from github.com is not included.https://github.com/metal3-io/baremetal-operator/pull/2322
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Assisted Installer for Red Hat OpenShift Container Platform 2 | rhai-tech-preview/assisted-installer-reporter-rhel8 | Fix deferred | |
| Assisted Installer for Red Hat OpenShift Container Platform 2 | rhai-tech-preview/assisted-installer-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/agent-service-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-installer-controller-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-installer-reporter-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-installer-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-service-8-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/assisted-service-9-rhel9 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/hive-rhel8 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/image-based-install-rhel9 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/acm-siteconfig-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-baremetal-cluster-api-controllers-rhel9 | Fix deferred | |
| Red Hat OpenShift Container Platform 4.12 | openshift4/ose-baremetal-rhel8-operator | Fixed | RHSA-2025:4409 |
| Red Hat OpenShift Container Platform 4.13 | openshift4/ose-baremetal-rhel8-operator | Fixed | RHSA-2025:4677 |
| Red Hat OpenShift Container Platform 4.14 | openshift4/ose-baremetal-rhel8-operator | Fixed | RHSA-2025:4177 |
| Red Hat OpenShift Container Platform 4.15 | openshift4/ose-baremetal-rhel9-operator | Fixed | RHSA-2025:4422 |
| Red Hat OpenShift Container Platform 4.16 | openshift4/ose-baremetal-rhel9-operator | Fixed | RHSA-2025:4008 |
| Red Hat OpenShift Container Platform 4.17 | openshift4/ose-baremetal-rhel9-operator | Fixed | RHSA-2025:3798 |
| Red Hat OpenShift Container Platform 4.18 | openshift4/ose-baremetal-rhel9-operator | Fixed | RHSA-2025:3775 |
| Red Hat OpenShift Container Platform 4.19 | openshift4/ose-cluster-baremetal-operator-rhel9 | Fixed | RHSA-2024:11038 |
| Red Hat OpenStack Platform 16.2 | rhosp-rhel8-tech-preview/osp-director-operator | Fix deferred | |
| Red Hat OpenStack Platform 16.2 | rhosp-rhel8/osp-director-agent | Fix deferred | |
| Red Hat OpenStack Platform 16.2 | rhosp-rhel8/osp-director-downloader | Fix deferred | |
| Red Hat OpenStack Platform 17.1 | rhosp-rhel9/osp-director-agent | Fix deferred | |
| Red Hat OpenStack Platform 17.1 | rhosp-rhel9/osp-director-downloader | Fix deferred | |
| Red Hat OpenStack Platform 17.1 | rhosp-rhel9/osp-director-operator | Fix deferred | |
| Red Hat OpenStack Platform 18.0 | openstack-baremetal-operator-bundle-container | Fix deferred | |
| Red Hat OpenStack Platform 18.0 | rhoso-operators/openstack-baremetal-agent-rhel9 | Fix deferred | |
| Red Hat OpenStack Platform 18.0 | rhoso-operators/openstack-baremetal-rhel9-operator | Fix deferred | |
| Red Hat OpenStack Platform 18.0 | rhoso-operators/openstack-operator-bundle | Fix deferred | |
| Red Hat OpenStack Platform 18.0 | rhoso-operators/openstack-rhel9-operator | Fix deferred |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 8.2 | |
| Attack Vector | Local | |
| Attack Complexity | Low | |
| Privileges Required | High | |
| User Interaction | None | |
| Scope | Changed | |
| Confidentiality Impact | High | |
| Integrity Impact | High | |
| Availability Impact | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.