Improper Privilege Management Affecting github.com/metal3-io/baremetal-operator/controllers/metal3.io package, versions <0.8.1>=0.9.0 <0.9.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Privilege Management vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMMETAL3IOBAREMETALOPERATORCONTROLLERSMETAL3IO-9480441
  • published19 Mar 2025
  • disclosed18 Mar 2025
  • creditdebuggerchen, WHALEEYE

Introduced: 18 Mar 2025

NewCVE-2025-29781  (opens in a new tab)
CWE-269  (opens in a new tab)

How to fix?

Upgrade github.com/metal3-io/baremetal-operator/controllers/metal3.io to version 0.8.1, 0.9.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Privilege Management when handling namespace scopes for BMCEventSubscription. A user with namespace level roles can access and manipulate secrets from unauthorized namespaces by creating a BMCEventSubscription in a namespace they control, which then allows them to load secrets from other namespaces, with the privileges of the cluster controller.

Workaround

This vulnerability can be avoided by configuring the RBAC to be namespace scoped instead of cluster scoped, or by configuring Bare Metal Operator to access a single namespace using the WATCH_NAMESPACE option.

CVSS Base Scores

version 4.0
version 3.1