CVE-2023-30841: Github.com/metal3 io/baremetal operator Ironic And Ironic-inspector May Expose Vulnerability

MODERATE
Advisory Identifier: GHSA-9wh7-397j-722m
CVSS 6.0
CWE-319 CWE-200
Published
Advisory Summary

CVE-2023-30841 is a MODERATE (CVSS 6.0) ironic and ironic-inspector may expose vulnerability (CWE-319: Cleartext Transmission of Sensitive Information) affecting Github.com/metal3 io/baremetal operator libraries in the Go ecosystem. The issue involves ironic and ironic-inspector may expose as configmaps. Remediation is available by upgrading affected packages to version 0.3.0.

CVE-2023-30841 at a Glance

CVE Identifier CVE-2023-30841
GHSA Identifier GHSA-9wh7-397j-722m
Severity MODERATE
CVSS v3.1 Base Score 6.0
CWE Classification CWE-319: Cleartext Transmission of Sensitive Information
Affected Product Github.com/metal3 io/baremetal operator
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-30841

To remediate this vulnerability, upgrade all affected Github.com/metal3 io/baremetal operator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/metal3-io/baremetal-operator fixed: 0.3.0
Upgrade github.com/metal3-io/baremetal-operator to 0.3.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/metal3-io/baremetal-operator

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-30841, inspect your project dependencies for Github.com/metal3 io/baremetal operator:

inspect dependencies for github.com/metal3-io/baremetal-operator

Analyze the terminal output to locate any version of Github.com/metal3 io/baremetal operator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-319: Cleartext Transmission of Sensitive Information, where the product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. In Github.com/metal3 io/baremetal operator, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact 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's Etcd storage. ### Patches This issue is patched in [baremetal-operator PR#1241](https://github.com/metal3-io/baremetal-operator/pull/1241), and is included in BMO release 0.3.0 onwards. ### Workarounds User may modify the kustomizations and redeploy the BMO, or recreate the required ConfigMaps as Secrets per instructions in [baremetal-operator PR#1241](https://github.com/metal3-io/baremetal-operator/pull/1241)

CVE-2023-30841 Affected Github.com/metal3 io/baremetal operator Versions

1 component(s)
Fixed Versions:
0.3.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/metal3-io/baremetal-operator
Go
< 0.3.0
0.3.0

References

Frequently Asked Questions

What is CVE-2023-30841?
CVE-2023-30841 is a security vulnerability in Github.com/metal3 io/baremetal operator involving Ironic and ironic-inspector may expose as ConfigMaps under CWE-319: Cleartext Transmission of Sensitive Information.
Which Github.com/metal3 io/baremetal operator versions are affected?
Affected versions include releases prior to 0.3.0 across affected packages: github.com/metal3-io/baremetal-operator.
What version fixes CVE-2023-30841?
Upgrading to 0.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/metal3-io/baremetal-operator affected?
Yes, github.com/metal3-io/baremetal-operator is affected in releases prior to 0.3.0. Upgrade your dependency to 0.3.0 or later.
What is the CVSS score of CVE-2023-30841?
CVE-2023-30841 has a CVSS v3.1 base score of 6.0 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N.
What CWE is associated with CVE-2023-30841?
CVE-2023-30841 is classified under CWE-319: Cleartext Transmission of Sensitive Information (The product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors.).
How can I check Go dependencies for CVE-2023-30841?
Run the dependency tree command: 'inspect dependencies for github.com/metal3-io/baremetal-operator'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9wh7-397j-722m",
  "modified" : "2023-04-26T19:46:00Z",
  "published" : "2023-04-26T19:46:00Z",
  "aliases" : [ "CVE-2023-30841" ],
  "summary" : "Ironic and ironic-inspector may expose as ConfigMaps",
  "details" : "### Impact\nIronic 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's Etcd storage.\n\n### Patches\nThis issue is patched in [baremetal-operator PR#1241](https://github.com/metal3-io/baremetal-operator/pull/1241), and is included in BMO release 0.3.0 onwards.\n\n### Workarounds\nUser may modify the kustomizations and redeploy the BMO, or recreate the required ConfigMaps as Secrets per instructions in [baremetal-operator PR#1241](https://github.com/metal3-io/baremetal-operator/pull/1241)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/metal3-io/baremetal-operator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/metal3-io/baremetal-operator/security/advisories/GHSA-9wh7-397j-722m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30841"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/metal3-io/baremetal-operator/pull/1241"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/metal3-io/baremetal-operator"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-319" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-26T19:46:00Z",
    "nvd_published_at" : "2023-04-26T19:15:09Z"
  }
}