CVE-2024-46528: Github.com/kubesphere/kubesphere KubeSphere IDOR Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-p26r-gfgc-c47h
CVSS 6.5
CWE-639
Published
Advisory Summary

CVE-2024-46528 is a MODERATE (CVSS 6.5) kubesphere idor vulnerability vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Github.com/kubesphere/kubesphere libraries in the Go ecosystem. The issue involves kubesphere idor vulnerability. Remediation is available by upgrading affected packages to version 4.1.3, 3.4.1.

CVE-2024-46528 at a Glance

CVE Identifier CVE-2024-46528
GHSA Identifier GHSA-p26r-gfgc-c47h
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Github.com/kubesphere/kubesphere
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-2024-46528

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

How to Check if You Are Affected

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

inspect dependencies for github.com/kubesphere/kubesphere

Analyze the terminal output to locate any version of Github.com/kubesphere/kubesphere in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.3), 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Github.com/kubesphere/kubesphere, 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

An Insecure Direct Object Reference (IDOR) vulnerability in KubeSphere v3.4.1 and v4.1.1 allows low-privileged authenticated attackers to access sensitive resources without proper authorization checks.

CVE-2024-46528 Affected Github.com/kubesphere/kubesphere Versions

2 component(s)
Fixed Versions:
4.1.33.4.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kubesphere/kubesphere
Go
≥ 4.0.0
< 4.1.3
4.1.3
github.com/kubesphere/kubesphere
Go
≥ 3.0.0
< 3.4.1
3.4.1

References

Frequently Asked Questions

What is CVE-2024-46528?
CVE-2024-46528 is a security vulnerability in Github.com/kubesphere/kubesphere involving KubeSphere IDOR vulnerability under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Github.com/kubesphere/kubesphere versions are affected?
Affected versions include releases prior to 4.1.3, 3.4.1 across affected packages: github.com/kubesphere/kubesphere.
What version fixes CVE-2024-46528?
Upgrading to 4.1.3, 3.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kubesphere/kubesphere affected?
Yes, github.com/kubesphere/kubesphere is affected in releases prior to 4.1.3, 3.4.1. Upgrade your dependency to 4.1.3, 3.4.1 or later.
What is the CVSS score of CVE-2024-46528?
CVE-2024-46528 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-2024-46528?
CVE-2024-46528 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Go dependencies for CVE-2024-46528?
Run the dependency tree command: 'inspect dependencies for github.com/kubesphere/kubesphere'. 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-p26r-gfgc-c47h",
  "modified" : "2024-12-12T17:51:25Z",
  "published" : "2024-10-14T18:30:26Z",
  "aliases" : [ "CVE-2024-46528" ],
  "summary" : "KubeSphere IDOR vulnerability",
  "details" : "An Insecure Direct Object Reference (IDOR) vulnerability in KubeSphere v3.4.1 and v4.1.1 allows low-privileged authenticated attackers to access sensitive resources without proper authorization checks.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kubesphere/kubesphere"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kubesphere/kubesphere"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-46528"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubesphere/kubesphere/issues/6227"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubesphere/kubesphere"
  }, {
    "type" : "WEB",
    "url" : "https://kubesphere.io"
  }, {
    "type" : "WEB",
    "url" : "https://okankurtulus.com.tr/2024/09/09/idor-vulnerability-in-kubesphere"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3248"
  }, {
    "type" : "WEB",
    "url" : "https://www.kubesphere.io/news/kubesphere-cve-2024-46528"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-01T20:35:14Z",
    "nvd_published_at" : "2024-10-14T18:15:03Z"
  }
}