Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/metal3-io/baremetal-operator/apis
  4. ›
  5. CVE-2025-29781

CVE-2025-29781: Bare Metal Operator (BMO) can expose any secret from other namespaces via BMCEventSubscription CRD

March 17, 2025 (updated March 19, 2025)

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 (BMCES). An adversary Kubernetes account with only namespace level roles (e.g. a tenant controlling a namespace) may create a BMCES in their authorized namespace and then load Secrets from their unauthorized namespaces to their authorized namespace via the Baremetal Operator controller’s cluster scoped privileges, causing Secret leakage.

References

  • github.com/advisories/GHSA-c98h-7hp9-v9hq
  • github.com/metal3-io/baremetal-operator
  • github.com/metal3-io/baremetal-operator/commit/19f8443b1fe182f76dd81b43122e8dd102f8b94c
  • github.com/metal3-io/baremetal-operator/pull/2321
  • github.com/metal3-io/baremetal-operator/pull/2322
  • github.com/metal3-io/baremetal-operator/security/advisories/GHSA-c98h-7hp9-v9hq
  • github.com/metal3-io/metal3-docs/blob/main/design/baremetal-operator/bmc-events.md
  • nvd.nist.gov/vuln/detail/CVE-2025-29781

Code Behaviors & Features

Detect and mitigate CVE-2025-29781 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.1, all versions starting from 0.9.0 before 0.9.1, version 0.9.0

Fixed versions

  • 0.9.1
  • 0.8.1

Solution

Upgrade to versions 0.8.1, 0.9.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-653: Improper Isolation or Compartmentalization

Source file

go/github.com/metal3-io/baremetal-operator/apis/CVE-2025-29781.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:12 +0000.