cve.bz

CVE-2025-29781 metal3-io baremetal-operator

6.5 mediumEPSS 0.2%Fix available

Medium (6.5) in metal3-io baremetal-operator. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/metal3-io/baremetal-operator/apis 0.8.1, 0.9.1.

On this page
The Bare Metal Operator (BMO) implements a Kubernetes API for managing bare metal hosts in Metal3. Baremetal Operator enables users to load Secret from arbitrary namespaces upon deployment of the namespace scoped Custom Resource `BMCEventSubscription`. Prior to versions 0.8.1 and 0.9.1, an adversary Kubernetes account with only namespace level roles (e.g. a tenant controlling a namespace) may create a `BMCEventSubscription` in his authorized namespace and then load Secrets from his unauthorized namespaces to his authorized namespace via the Baremetal Operator, causing Secret Leakage. The patch makes BMO refuse to read Secrets from other namespace than where the corresponding BMH resource is. The patch does not change the `BMCEventSubscription` API in BMO, but stricter validation will fail the request at admission time. It will also prevent the controller reading such Secrets, in case the BMCES CR has already been deployed. The issue exists for all versions of BMO, and is patched in BMO releases v0.9.1 and v0.8.1. Prior upgrading to patched BMO version, duplicate any existing Secret pointed to by `BMCEventSubscription`'s `httpHeadersRef` to the same namespace where the corresponding BMH exists. After upgrade, remove the old Secrets. As a workaround, the operator can configure BMO RBAC to be namespace scoped, instead of cluster scoped, to prevent BMO from accessing Secrets from other namespaces, and/or use `WATCH_NAMESPACE` configuration option to limit BMO to single namespace.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 8th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-03-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-653 Improper Isolation or Compartmentalization
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-29781 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-29781?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-29781?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-29781 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
metal3-io baremetal-operator= 0.9.0
metal3-io baremetal-operator< 0.8.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c98h-7hp9-v9hqGogithub.com/metal3-io/baremetal-operator/apis>=0.9.0 <0.9.10.9.1
GHSA-c98h-7hp9-v9hqGogithub.com/metal3-io/baremetal-operator/apis<0.8.10.8.1
GO-2025-3530Gogithub.com/metal3-io/baremetal-operator/apis<0.8.1
>=0.9.0 <0.9.1
0.8.1, 0.9.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSETumbleweedgovulncheck-vulndb0.0.20250318T181448-1.1openSUSE-SU-2025:14910-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's 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.

Red Hat's 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.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.12openshift4/ose-baremetal-rhel8-operator:v4.12.0-202504241000.p0.g6817f4e.assembly.stream.el8Fixed 2025-05-08RHSA-2025:4409
Red Hat OpenShift Container Platform 4.13openshift4/ose-baremetal-rhel8-operator:v4.13.0-202504231429.p0.g3f56e49.assembly.stream.el8Fixed 2025-05-15RHSA-2025:4677
Red Hat OpenShift Container Platform 4.14openshift4/ose-baremetal-rhel8-operator:v4.14.0-202504220036.p0.g483d019.assembly.stream.el8Fixed 2025-04-30RHSA-2025:4177
Red Hat OpenShift Container Platform 4.15openshift4/ose-baremetal-rhel9-operator:v4.15.0-202504281408.p0.g880ee05.assembly.stream.el9Fixed 2025-05-08RHSA-2025:4422
Red Hat OpenShift Container Platform 4.16openshift4/ose-baremetal-rhel9-operator:v4.16.0-202504120704.p0.g84aeac3.assembly.stream.el9Fixed 2025-04-23RHSA-2025:4008
Red Hat OpenShift Container Platform 4.17openshift4/ose-baremetal-rhel9-operator:v4.17.0-202504091537.p0.ge6e5d54.assembly.stream.el9Fixed 2025-04-16RHSA-2025:3798
Red Hat OpenShift Container Platform 4.18openshift4/ose-baremetal-rhel9-operator:v4.18.0-202504090803.p0.g001d949.assembly.stream.el9Fixed 2025-04-16RHSA-2025:3775
Red Hat OpenShift Container Platform 4.19openshift4/ose-cluster-baremetal-operator-rhel9:v4.19.0-202505200051.p0.gf64a5c1.assembly.stream.el9Fixed 2025-06-17RHSA-2024:11038
Assisted Installer for Red Hat OpenShift Container Platform 2rhai-tech-preview/assisted-installer-reporter-rhel8Fix deferred
Assisted Installer for Red Hat OpenShift Container Platform 2rhai-tech-preview/assisted-installer-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/agent-service-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-controller-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-reporter-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-installer-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-service-8-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-service-9-rhel9Affected
Multicluster Engine for Kubernetesmulticluster-engine/hive-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/image-based-install-rhel9Fix deferred
Multicluster Engine for Kubernetesrhoai/odh-trustyai-service-rhel9Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-siteconfig-rhel9Fix deferred
12 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-29781.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON