Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-29781

MEDIUM 6.5PoCEPSS 14%

Bare Metal Operator (BMO) can expose any secret from other namespaces via BMCEventSubscription CRD

Also known as GHSA-c98h-7hp9-v9hq, GO-2025-3530

Mitigation

  • Upgrade github.com/metal3-io/baremetal-operator/apis to one of 0.9.1, 0.8.1 (or later in the same release line).

Who should check

  • Projects that depend on Go package github.com/metal3-io/baremetal-operator/apis (>= 0.9.0, < 0.9.1)
  • Anyone running metal3-io baremetal-operator = 0.9.0; < 0.8.1

Vulnerability facts

Affected
github.com/metal3-io/baremetal-operator/apis >= 0.9.0, < 0.9.1
Fixed in
0.9.1, 0.8.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
EPSS
0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
CWE
CWE-200, CWE-653
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Go github.com/metal3-io/baremetal-operator/apis>= 0.9.0, < 0.9.10.9.1, 0.8.1osv
metal3-io baremetal-operator= 0.9.0; < 0.8.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-29781. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-29781.md
Affected: github.com/metal3-io/baremetal-operator/apis >= 0.9.0, < 0.9.1
Fixed in: 0.9.1, 0.8.1

Steps:
1. Search this machine and project for github.com/metal3-io/baremetal-operator/apis (Go), metal3-io baremetal-operator: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-29781 being exploited?

There is no confirmed exploitation: CVE-2025-29781 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-29781?

Medium: CVSS 6.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-29781?

github.com/metal3-io/baremetal-operator/apis >= 0.9.0, < 0.9.1.

Is there a fix for CVE-2025-29781?

Yes. Fixed in 0.9.1, 0.8.1. Upgrade github.com/metal3-io/baremetal-operator/apis to one of 0.9.1, 0.8.1 (or later in the same release line).

How do I check if I'm affected by CVE-2025-29781?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors