CVE-2024-41820: Github.com/kubean io/kubean Kubean Vulnerable To Cluster-level Privilege Vulnerability

HIGH
Advisory Identifier: GHSA-3wfj-3x8q-hrpg
CVSS 6.0
CWE-732 CWE-276
Published
Advisory Summary

CVE-2024-41820 is a HIGH (CVSS 6.0) kubean vulnerable to cluster-level privilege vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Github.com/kubean io/kubean libraries in the Go ecosystem. The issue involves kubean vulnerable to cluster-level privilege escalation. Remediation is available by upgrading affected packages to version 0.18.0.

CVE-2024-41820 at a Glance

CVE Identifier CVE-2024-41820
GHSA Identifier GHSA-3wfj-3x8q-hrpg
Severity HIGH
CVSS v3.1 Base Score 6.0
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Github.com/kubean io/kubean
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:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:H).

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

How to Fix CVE-2024-41820

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

How to Check if You Are Affected

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

inspect dependencies for github.com/kubean-io/kubean

Analyze the terminal output to locate any version of Github.com/kubean io/kubean in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.18.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-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Github.com/kubean io/kubean, 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 This ClusterRole has `*` verbs of `*` resources. If a malicious user can access the worker node which has kubean'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 >=v0.18.0 ### References Reporting by @younaman(Nanzi Yang) https://github.com/kubean-io/kubean/issues/1326

CVE-2024-41820 Affected Github.com/kubean io/kubean Versions

1 component(s)
Fixed Versions:
0.18.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kubean-io/kubean
Go
< 0.18.0
0.18.0

References

Frequently Asked Questions

What is CVE-2024-41820?
CVE-2024-41820 is a security vulnerability in Github.com/kubean io/kubean involving Kubean vulnerable to cluster-level privilege escalation under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Github.com/kubean io/kubean versions are affected?
Affected versions include releases prior to 0.18.0 across affected packages: github.com/kubean-io/kubean.
What version fixes CVE-2024-41820?
Upgrading to 0.18.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kubean-io/kubean affected?
Yes, github.com/kubean-io/kubean is affected in releases prior to 0.18.0. Upgrade your dependency to 0.18.0 or later.
What is the CVSS score of CVE-2024-41820?
CVE-2024-41820 has a CVSS v3.1 base score of 6.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:H.
What CWE is associated with CVE-2024-41820?
CVE-2024-41820 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Go dependencies for CVE-2024-41820?
Run the dependency tree command: 'inspect dependencies for github.com/kubean-io/kubean'. 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-3wfj-3x8q-hrpg",
  "modified" : "2024-11-18T16:27:00Z",
  "published" : "2024-08-05T16:07:50Z",
  "aliases" : [ "CVE-2024-41820" ],
  "summary" : "Kubean vulnerable to cluster-level privilege escalation",
  "details" : "### Impact\nThis ClusterRole has `*` verbs of `*` resources. If a malicious user can access the worker node which has kubean'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>=v0.18.0\n\n### References\nReporting by @younaman(Nanzi Yang)\nhttps://github.com/kubean-io/kubean/issues/1326",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kubean-io/kubean"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/kubean-io/kubean/security/advisories/GHSA-3wfj-3x8q-hrpg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-41820"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubean-io/kubean/issues/1326"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubean-io/kubean/commit/167e97329e4a27ba2f456d2846d39af20e1af7ef"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubean-io/kubean"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3039"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-276", "CWE-732" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-05T16:07:50Z",
    "nvd_published_at" : "2024-08-05T20:15:35Z"
  }
}