CVE-2023-30841: Github.com/metal3 io/baremetal operator Ironic And Ironic-inspector May Expose Vulnerability
MODERATECVE-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
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).
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.
Upgrade github.com/metal3-io/baremetal-operator to 0.3.0
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
CVE-2023-30841 Affected Github.com/metal3 io/baremetal operator Versions
1 component(s)| 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?
Which Github.com/metal3 io/baremetal operator versions are affected?
What version fixes CVE-2023-30841?
Is github.com/metal3-io/baremetal-operator affected?
What is the CVSS score of CVE-2023-30841?
What CWE is associated with CVE-2023-30841?
How can I check Go dependencies for CVE-2023-30841?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}