CVE-2023-30512: Github.com/cubefs/cubefs CubeFS Allows Kubernetes Cluster-level Privilege Vulnerability

MODERATE
Advisory Identifier: GHSA-9337-8c6c-c2xg
CVSS 6.5
CWE-732
Published
Advisory Summary

CVE-2023-30512 is a MODERATE (CVSS 6.5) cubefs allows kubernetes cluster-level privilege vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Github.com/cubefs/cubefs libraries in the Go ecosystem. The issue involves cubefs allows kubernetes cluster-level privilege escalation. Remediation is available in the latest vendor maintenance releases.

CVE-2023-30512 at a Glance

CVE Identifier CVE-2023-30512
GHSA Identifier GHSA-9337-8c6c-c2xg
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Github.com/cubefs/cubefs
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2023-30512

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

How to Check if You Are Affected

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

inspect dependencies for github.com/cubefs/cubefs

Analyze the terminal output to locate any version of Github.com/cubefs/cubefs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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/cubefs/cubefs, 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

CubeFS through 3.2.1 allows Kubernetes cluster-level privilege escalation. This occurs because DaemonSet has cfs-csi-cluster-role and can thus list all secrets, including the admin secret.

CVE-2023-30512 Affected Github.com/cubefs/cubefs Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cubefs/cubefs
Go
≤ 3.2.1

References

Frequently Asked Questions

What is CVE-2023-30512?
CVE-2023-30512 is a security vulnerability in Github.com/cubefs/cubefs involving CubeFS allows Kubernetes cluster-level privilege escalation under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Github.com/cubefs/cubefs versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/cubefs/cubefs.
What version fixes CVE-2023-30512?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cubefs/cubefs affected?
Yes, github.com/cubefs/cubefs is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-30512?
CVE-2023-30512 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-30512?
CVE-2023-30512 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-2023-30512?
Run the dependency tree command: 'inspect dependencies for github.com/cubefs/cubefs'. 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-9337-8c6c-c2xg",
  "modified" : "2023-04-20T14:15:51Z",
  "published" : "2023-04-12T06:30:22Z",
  "aliases" : [ "CVE-2023-30512" ],
  "summary" : "CubeFS allows Kubernetes cluster-level privilege escalation",
  "details" : "CubeFS through 3.2.1 allows Kubernetes cluster-level privilege escalation. This occurs because DaemonSet has cfs-csi-cluster-role and can thus list all secrets, including the admin secret.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cubefs/cubefs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30512"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cubefs/cubefs/issues/1882"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cubefs/cubefs"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-12T20:40:15Z",
    "nvd_published_at" : "2023-04-12T06:15:00Z"
  }
}