{"answers":{"affected":"5 open source packages ship an affected version, including github.com/metal3-io/baremetal-operator/apis.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-29781 exists.","fix":"Upgrade github.com/metal3-io/baremetal-operator/apis to a fixed version for your release line: 0.8.1 or 0.9.1.","what":"CVE-2025-29781 is a medium-severity vulnerability in metal3-io baremetal-operator, published on 17 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-29781 and fix it if it is affected.\n\nWhat it is: CVE-2025-29781 is a medium-severity vulnerability in metal3-io baremetal-operator, published on 17 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-29781 exists.\n\nAffected packages and fixed versions:\n- github.com/metal3-io/baremetal-operator/apis (Go): affected all versions; fixed in 0.8.1, 0.9.1\n- github.com/metal3-io/baremetal-operator/apis (Go): affected all versions; fixed in 0.8.1\n- github.com/metal3-io/baremetal-operator/apis (Go): affected all versions; fixed in 0.8.1\n- github.com/metal3-io/baremetal-operator/apis (Go): affected from 0.9.0; fixed in 0.9.1\n- github.com/metal3-io/baremetal-operator/apis (Go): affected from 0.9.0; fixed in 0.9.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-29781/ (Markdown: https://insights.sbomify.com/CVE-2025-29781/index.md)","id":"CVE-2025-29781","markdown":"https://insights.sbomify.com/CVE-2025-29781/index.md","name":"CVE-2025-29781","record":{"aliases":["GHSA-c98h-7hp9-v9hq","GO-2025-3530"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Kubernetes bare metal operator","requires_auth":"low_privilege","summary":"An attacker with namespace-level access can leak secrets from other namespaces by creating a BMCEventSubscription resource in the Metal3 Bare Metal Operator.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-653","name":"Improper Isolation or Compartmentalization"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Bare Metal Operator (BMO) can expose any secret from other namespaces via BMCEventSubscription CRD","id":"CVE-2025-29781","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2025"},"n_packages":5,"n_references":5,"next":{"headline":"WeGIA Cross-Site Scripting (XSS) Stored in endpoint `adicionar_tipo_docs_atendido.php` parameter `tipo`","id":"CVE-2025-29782"},"packages":[{"ecosystem":"Go","fixed":["0.8.1","0.9.1"],"introduced":["0","0.9.0"],"last_affected":[],"package":"github.com/metal3-io/baremetal-operator/apis","purl":"pkg:golang/github.com/metal3-io/baremetal-operator/apis","source":"GO-2025-3530"},{"ecosystem":"Go","fixed":["0.8.1"],"introduced":["0"],"last_affected":[],"package":"github.com/metal3-io/baremetal-operator/apis","purl":null,"source":"GHSA-c98h-7hp9-v9hq"},{"ecosystem":"Go","fixed":["0.8.1"],"introduced":["0"],"last_affected":[],"package":"github.com/metal3-io/baremetal-operator/apis","purl":"pkg:golang/github.com/metal3-io/baremetal-operator/apis","source":"GHSA-c98h-7hp9-v9hq"},{"ecosystem":"Go","fixed":["0.9.1"],"introduced":["0.9.0"],"last_affected":[],"package":"github.com/metal3-io/baremetal-operator/apis","purl":null,"source":"GHSA-c98h-7hp9-v9hq"},{"ecosystem":"Go","fixed":["0.9.1"],"introduced":["0.9.0"],"last_affected":[],"package":"github.com/metal3-io/baremetal-operator/apis","purl":"pkg:golang/github.com/metal3-io/baremetal-operator/apis","source":"GHSA-c98h-7hp9-v9hq"}],"prev":{"headline":"Post-Quantum Secure Feldman's Verifiable Secret Sharing has Timing Side-Channels in Matrix Operations","id":"CVE-2025-29780"},"products":["baremetal-operator"],"published":"2025-03-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-18","vendors":["metal3-io"]},"summary":"An attacker with namespace-level access can leak secrets from other namespaces by creating a BMCEventSubscription resource in the Metal3 Bare Metal Operator.","url":"https://insights.sbomify.com/CVE-2025-29781/"}