CVE-2024-45054: Github.com/hwameistor/hwameistor Hwameistor Potential Permission Leakage Of Vulnerability

MODERATE
Advisory Identifier: GHSA-mgwr-h7mv-fh29
CVSS 2.3
CWE-266 CWE-200
Published
Advisory Summary

CVE-2024-45054 is a MODERATE (CVSS 2.3) hwameistor potential permission leakage of vulnerability (CWE-266: Incorrect Privilege Assignment) affecting Github.com/hwameistor/hwameistor libraries in the Go ecosystem. The issue involves hwameistor potential permission leakage of cluster level. Remediation is available by upgrading affected packages to version 0.14.6.

CVE-2024-45054 at a Glance

CVE Identifier CVE-2024-45054
GHSA Identifier GHSA-mgwr-h7mv-fh29
Severity MODERATE
CVSS v3.1 Base Score 2.3
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product Github.com/hwameistor/hwameistor
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 2.3

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:U/C:L/I:N/A:N).

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

How to Fix CVE-2024-45054

To remediate this vulnerability, upgrade all affected Github.com/hwameistor/hwameistor 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/hwameistor/hwameistor fixed: 0.14.6
Upgrade github.com/hwameistor/hwameistor to 0.14.6
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/hwameistor/hwameistor

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-45054, inspect your project dependencies for Github.com/hwameistor/hwameistor:

inspect dependencies for github.com/hwameistor/hwameistor

Analyze the terminal output to locate any version of Github.com/hwameistor/hwameistor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.14.6), 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-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. In Github.com/hwameistor/hwameistor, 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 _What kind of vulnerability is it? Who is impacted?_ This ClusterRole has * verbs of * resources. If a malicious user can access the worker node which has hwameistor's deployment, he/she can abuse these excessive permissions to do whatever he/she likes to the whole cluster, resulting in a cluster-level privilege escalation. ### Patches _Has the problem been patched? What versions should users upgrade to?_ >= v0.14.6 ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ Update and Limit the ClusterRole using [security-role](https://github.com/hwameistor/hwameistor/blob/main/helm/hwameistor/templates/clusterrole.yaml). ### References _Are there any links users can visit to find out more?_ issues: https://github.com/hwameistor/hwameistor/issues/1457 https://github.com/hwameistor/hwameistor/issues/1460 also reported by users via mails: [sparkEchooo](https://github.com/sparkEchooo), [younaman](https://github.com/younaman)

CVE-2024-45054 Affected Github.com/hwameistor/hwameistor Versions

1 component(s)
Fixed Versions:
0.14.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/hwameistor/hwameistor
Go
< 0.14.6
0.14.6

References

Frequently Asked Questions

What is CVE-2024-45054?
CVE-2024-45054 is a security vulnerability in Github.com/hwameistor/hwameistor involving Hwameistor Potential Permission Leakage of Cluster Level under CWE-266: Incorrect Privilege Assignment.
Which Github.com/hwameistor/hwameistor versions are affected?
Affected versions include releases prior to 0.14.6 across affected packages: github.com/hwameistor/hwameistor.
What version fixes CVE-2024-45054?
Upgrading to 0.14.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/hwameistor/hwameistor affected?
Yes, github.com/hwameistor/hwameistor is affected in releases prior to 0.14.6. Upgrade your dependency to 0.14.6 or later.
What is the CVSS score of CVE-2024-45054?
CVE-2024-45054 has a CVSS v3.1 base score of 2.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-45054?
CVE-2024-45054 is classified under CWE-266: Incorrect Privilege Assignment (A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.).
How can I check Go dependencies for CVE-2024-45054?
Run the dependency tree command: 'inspect dependencies for github.com/hwameistor/hwameistor'. 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-mgwr-h7mv-fh29",
  "modified" : "2024-11-18T16:27:08Z",
  "published" : "2024-08-29T18:00:45Z",
  "aliases" : [ "CVE-2024-45054" ],
  "summary" : "Hwameistor Potential Permission Leakage of Cluster Level ",
  "details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\nThis ClusterRole has * verbs of * resources. If a malicious user can access the worker node which has hwameistor's deployment, he/she can abuse these excessive permissions to do whatever he/she likes to the whole cluster, resulting in a cluster-level privilege escalation.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n>= v0.14.6\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\nUpdate and Limit the ClusterRole using [security-role](https://github.com/hwameistor/hwameistor/blob/main/helm/hwameistor/templates/clusterrole.yaml).\n\n### References\n_Are there any links users can visit to find out more?_\nissues:\nhttps://github.com/hwameistor/hwameistor/issues/1457\nhttps://github.com/hwameistor/hwameistor/issues/1460\n\nalso reported by users via mails: \n[sparkEchooo](https://github.com/sparkEchooo), [younaman](https://github.com/younaman)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/hwameistor/hwameistor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.14.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.14.5"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/hwameistor/hwameistor/security/advisories/GHSA-mgwr-h7mv-fh29"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45054"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hwameistor/hwameistor/issues/1457"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hwameistor/hwameistor/issues/1460"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hwameistor/hwameistor/commit/edf4cebed73cadd230bf97eab65c5311f2858450"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hwameistor/hwameistor"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hwameistor/hwameistor/blob/main/helm/hwameistor/templates/clusterrole.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-266" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-29T18:00:45Z",
    "nvd_published_at" : "2024-08-28T20:15:08Z"
  }
}