Vulnerabilities in pkg:golang/github.com/clusternet/clusternet

PACKAGE
Advisory Identifier: GHSA-833c-xh79-p429
Advisory Summary

CVE-2023-30622 is a MODERATE (CVSS 6.7) a potential risk vulnerability (CWE-269: Improper Privilege Management) affecting Github.com/clusternet/clusternet libraries in the Go ecosystem. The issue involves a potential risk in clusternet which can be leveraged to make a cluster-level privilege escalation. Remediation is available by upgrading affected packages to version 0.15.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/clusternet/clusternet

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/clusternet/clusternet. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-833c-xh79-p429 CVE-2023-30622 MODERATE A potential risk in clusternet which can be leveraged to make a cluster-level privilege escalation

CVE-2023-30622 at a Glance

CVE Identifier CVE-2023-30622
GHSA Identifier GHSA-833c-xh79-p429
Severity MODERATE
CVSS v3.1 Base Score 6.7
CWE Classification CWE-269: Improper Privilege Management
Affected Product Github.com/clusternet/clusternet
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.7

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

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

How to Fix CVE-2023-30622

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

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-30622, inspect your project dependencies for Github.com/clusternet/clusternet:

inspect dependencies for github.com/clusternet/clusternet

Analyze the terminal output to locate any version of Github.com/clusternet/clusternet in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.15.2), 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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Github.com/clusternet/clusternet, 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

## Summary: A potential risk in clusternet which can be leveraged to make a cluster-level privilege escalation. ## Detailed analysis: The clusternet has a deployment called cluster-hub inside the clusternet-system Kubernetes namespace, which runs on worker nodes randomly. The deployment has a service account called clusternet-hub, which has a cluster role called clusternet:hub via cluster role binding. The clusternet:hub cluster role has "*" verbs of "*.*" resources. Thus, if a malicious user can access the worker node which runs the clusternet, he/she can leverage the service account to do malicious actions to critical system resources. For example, he/she can leverage the service account to get ALL secrets in the entire cluster, resulting in cluster-level privilege escalation.

CVE-2023-30622 Affected Github.com/clusternet/clusternet Versions

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

References

Frequently Asked Questions

What is CVE-2023-30622?
CVE-2023-30622 is a security vulnerability in Github.com/clusternet/clusternet involving A potential risk in clusternet which can be leveraged to make a cluster-level privilege escalation under CWE-269: Improper Privilege Management.
Which Github.com/clusternet/clusternet versions are affected?
Affected versions include releases prior to 0.15.2 across affected packages: github.com/clusternet/clusternet.
What version fixes CVE-2023-30622?
Upgrading to 0.15.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/clusternet/clusternet affected?
Yes, github.com/clusternet/clusternet is affected in releases prior to 0.15.2. Upgrade your dependency to 0.15.2 or later.
What is the CVSS score of CVE-2023-30622?
CVE-2023-30622 has a CVSS v3.1 base score of 6.7 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:L.
What CWE is associated with CVE-2023-30622?
CVE-2023-30622 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Go dependencies for CVE-2023-30622?
Run the dependency tree command: 'inspect dependencies for github.com/clusternet/clusternet'. 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-833c-xh79-p429",
  "modified" : "2023-04-24T15:57:13Z",
  "published" : "2023-04-21T19:42:10Z",
  "aliases" : [ "CVE-2023-30622" ],
  "summary" : "A potential risk in clusternet which can be leveraged to make a cluster-level privilege escalation",
  "details" : "## Summary:\nA potential risk in clusternet which can be leveraged to make a cluster-level privilege escalation.\n## Detailed analysis:\nThe clusternet has a deployment called cluster-hub inside the clusternet-system Kubernetes namespace, which runs on worker nodes\nrandomly. The deployment has a service account called clusternet-hub, which has a cluster role called clusternet:hub via cluster role binding. The clusternet:hub cluster role has \"*\" verbs of \"*.*\" resources. Thus, if a malicious user can access the worker node which runs the clusternet, he/she can leverage the service account to do malicious actions to critical system resources. For example, he/she can leverage the service account to get ALL secrets in the entire cluster, resulting in cluster-level privilege escalation.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/clusternet/clusternet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.15.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/clusternet/clusternet/security/advisories/GHSA-833c-xh79-p429"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30622"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/clusternet/clusternet"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/clusternet/clusternet/releases/tag/v0.15.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-21T19:42:10Z",
    "nvd_published_at" : "2023-04-24T16:15:07Z"
  }
}