All the vulnerabilites related to metal3-io - baremetal-operator
cve-2024-43803
Vulnerability from cvelistv5
Published
2024-09-03 18:56
Modified
2024-09-03 19:30
Severity ?
EPSS score ?
Summary
BMO can expose particularly named secrets from other namespaces via BMH CRD
References
Impacted products
▼ | Vendor | Product |
---|---|---|
metal3-io | baremetal-operator |
{ "containers": { "adp": [ { "metrics": [ { "other": { "content": { "id": "CVE-2024-43803", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "timestamp": "2024-09-03T19:30:23.615407Z", "version": "2.0.3" }, "type": "ssvc" } } ], "providerMetadata": { "dateUpdated": "2024-09-03T19:30:44.895Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "product": "baremetal-operator", "vendor": "metal3-io", "versions": [ { "status": "affected", "version": "\u003e= 0.7.0, \u003c 0.8.0" }, { "status": "affected", "version": "\u003e= 0.6.0, \u003c 0.6.2" }, { "status": "affected", "version": "\u003c 0.5.2" } ] } ], "descriptions": [ { "lang": "en", "value": "The Bare Metal Operator (BMO) implements a Kubernetes API for managing bare metal hosts in Metal3. The `BareMetalHost` (BMH) CRD allows the `userData`, `metaData`, and `networkData` for the provisioned host to be specified as links to Kubernetes Secrets. There are fields for both the `Name` and `Namespace` of the Secret, meaning that versions of the baremetal-operator prior to 0.8.0, 0.6.2, and 0.5.2 will read a `Secret` from any namespace. A user with access to create or edit a `BareMetalHost` can thus exfiltrate a `Secret` from another namespace by using it as e.g. the `userData` for provisioning some host (note that this need not be a real host, it could be a VM somewhere).\n\nBMO will only read a key with the name `value` (or `userData`, `metaData`, or `networkData`), so that limits the exposure somewhat. `value` is probably a pretty common key though. Secrets used by _other_ `BareMetalHost`s in different namespaces are always vulnerable. It is probably relatively unusual for anyone other than cluster administrators to have RBAC access to create/edit a `BareMetalHost`. This vulnerability is only meaningful, if the cluster has users other than administrators and users\u0027 privileges are limited to their respective namespaces.\n\nThe patch prevents BMO from accepting links to Secrets from other namespaces as BMH input. Any BMH configuration is only read from the same namespace only. The problem is patched in BMO releases v0.7.0, v0.6.2 and v0.5.2 and users should upgrade to those versions. Prior upgrading, duplicate the BMC Secrets to the namespace where the corresponding BMH is. After upgrade, remove the old Secrets. As a workaround, an operator can configure BMO RBAC to be namespace scoped for Secrets, instead of cluster scoped, to prevent BMO from accessing Secrets from other namespaces." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 4.9, "baseSeverity": "MEDIUM", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "privilegesRequired": "HIGH", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-200", "description": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", "lang": "en", "type": "CWE" } ] }, { "descriptions": [ { "cweId": "CWE-653", "description": "CWE-653: Improper Isolation or Compartmentalization", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2024-09-03T18:56:29.607Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/metal3-io/baremetal-operator/security/advisories/GHSA-pqfh-xh7w-7h3p", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/metal3-io/baremetal-operator/security/advisories/GHSA-pqfh-xh7w-7h3p" }, { "name": "https://github.com/metal3-io/baremetal-operator/pull/1929", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/metal3-io/baremetal-operator/pull/1929" }, { "name": "https://github.com/metal3-io/baremetal-operator/pull/1930", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/metal3-io/baremetal-operator/pull/1930" }, { "name": "https://github.com/metal3-io/baremetal-operator/pull/1931", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/metal3-io/baremetal-operator/pull/1931" }, { "name": "https://github.com/metal3-io/baremetal-operator/commit/3af4882e9c5fadc1a7550f53daea21dccd271f74", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/metal3-io/baremetal-operator/commit/3af4882e9c5fadc1a7550f53daea21dccd271f74" }, { "name": "https://github.com/metal3-io/baremetal-operator/commit/bedae7b997d16f36e772806681569bb8eb4dadbb", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/metal3-io/baremetal-operator/commit/bedae7b997d16f36e772806681569bb8eb4dadbb" }, { "name": "https://github.com/metal3-io/baremetal-operator/commit/c2b5a557641bc273367635124047d6c958aa15f7", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/metal3-io/baremetal-operator/commit/c2b5a557641bc273367635124047d6c958aa15f7" } ], "source": { "advisory": "GHSA-pqfh-xh7w-7h3p", "discovery": "UNKNOWN" }, "title": "BMO can expose particularly named secrets from other namespaces via BMH CRD" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2024-43803", "datePublished": "2024-09-03T18:56:29.607Z", "dateReserved": "2024-08-16T14:20:37.326Z", "dateUpdated": "2024-09-03T19:30:44.895Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }
cve-2023-30841
Vulnerability from cvelistv5
Published
2023-04-26 18:24
Modified
2024-08-02 14:37
Severity ?
EPSS score ?
Summary
Ironic and ironic-inspector deployed within Baremetal Operator may expose as ConfigMaps
References
▼ | URL | Tags |
---|---|---|
https://github.com/metal3-io/baremetal-operator/security/advisories/GHSA-9wh7-397j-722m | x_refsource_CONFIRM | |
https://github.com/metal3-io/baremetal-operator/pull/1241 | x_refsource_MISC |
Impacted products
▼ | Vendor | Product |
---|---|---|
metal3-io | baremetal-operator |
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-02T14:37:15.430Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "name": "https://github.com/metal3-io/baremetal-operator/security/advisories/GHSA-9wh7-397j-722m", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/metal3-io/baremetal-operator/security/advisories/GHSA-9wh7-397j-722m" }, { "name": "https://github.com/metal3-io/baremetal-operator/pull/1241", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/metal3-io/baremetal-operator/pull/1241" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "baremetal-operator", "vendor": "metal3-io", "versions": [ { "status": "affected", "version": "\u003c 0.3.0" } ] } ], "descriptions": [ { "lang": "en", "value": "Baremetal Operator (BMO) is a bare metal host provisioning integration for Kubernetes. Prior to version 0.3.0, ironic and ironic-inspector deployed within Baremetal Operator using the included `deploy.sh` store their `.htpasswd` files as ConfigMaps instead of Secrets. This causes the plain-text username and hashed password to be readable by anyone having a cluster-wide read-access to the management cluster, or access to the management cluster\u0027s Etcd storage. This issue is patched in baremetal-operator PR#1241, and is included in BMO release 0.3.0 onwards. As a workaround, users may modify the kustomizations and redeploy the BMO, or recreate the required ConfigMaps as Secrets per instructions in baremetal-operator PR#1241." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "LOCAL", "availabilityImpact": "NONE", "baseScore": 6, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "privilegesRequired": "HIGH", "scope": "CHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-200", "description": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2023-04-26T18:24:04.479Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/metal3-io/baremetal-operator/security/advisories/GHSA-9wh7-397j-722m", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/metal3-io/baremetal-operator/security/advisories/GHSA-9wh7-397j-722m" }, { "name": "https://github.com/metal3-io/baremetal-operator/pull/1241", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/metal3-io/baremetal-operator/pull/1241" } ], "source": { "advisory": "GHSA-9wh7-397j-722m", "discovery": "UNKNOWN" }, "title": "Ironic and ironic-inspector deployed within Baremetal Operator may expose as ConfigMaps" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2023-30841", "datePublished": "2023-04-26T18:24:04.479Z", "dateReserved": "2023-04-18T16:13:15.880Z", "dateUpdated": "2024-08-02T14:37:15.430Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }