CVE-2024-56513: Github.com/karmada io/karmada Karmada PULL Mode Cluster Privilege Vulnerability

HIGH
Advisory Identifier: GHSA-mg7w-c9x2-xh7r
CWE-266
Published
Advisory Summary

CVE-2024-56513 is a HIGH karmada pull mode cluster privilege vulnerability (CWE-266: Incorrect Privilege Assignment) affecting Github.com/karmada io/karmada libraries in the Go ecosystem. The issue involves karmada pull mode cluster privilege escalation. Remediation is available by upgrading affected packages to version 1.12.0.

CVE-2024-56513 at a Glance

CVE Identifier CVE-2024-56513
GHSA Identifier GHSA-mg7w-c9x2-xh7r
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product Github.com/karmada io/karmada
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2024-56513

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

How to Check if You Are Affected

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

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

Analyze the terminal output to locate any version of Github.com/karmada io/karmada in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.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-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/karmada io/karmada, 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?_ The [PULL](https://karmada.io/docs/next/userguide/clustermanager/cluster-registration#pull-mode) mode clusters registered with the `karmadactl register` command have excessive privileges to access control plane resources. By abusing these permissions, an attacker able to authenticate as the karmada-agent to a karmada cluster would be able to obtain administrative privileges over the entire federation system including all registered member clusters. ### Patches _Has the problem been patched? What versions should users upgrade to?_ Since Karmada v1.12.0, command `karmadactl register` restricts the access permissions of pull mode member clusters to control plane resources. This way, an attacker able to authenticate as the karmada-agent cannot control other member clusters in Karmada. ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ Restricts the access permissions of pull mode member clusters to control plane resources according to [Karmada Component Permissions Docs](https://karmada.io/docs/administrator/security/component-permission). ### References _Are there any links users can visit to find out more?_ 1. Enhancements made from the Karmada community: https://github.com/karmada-io/karmada/pull/5793 2. Karmada Component Permissions: https://karmada.io/docs/administrator/security/component-permission

CVE-2024-56513 Affected Github.com/karmada io/karmada Versions

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

References

Frequently Asked Questions

What is CVE-2024-56513?
CVE-2024-56513 is a security vulnerability in Github.com/karmada io/karmada involving Karmada PULL Mode Cluster Privilege Escalation under CWE-266: Incorrect Privilege Assignment.
Which Github.com/karmada io/karmada versions are affected?
Affected versions include releases prior to 1.12.0 across affected packages: github.com/karmada-io/karmada.
What version fixes CVE-2024-56513?
Upgrading to 1.12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/karmada-io/karmada affected?
Yes, github.com/karmada-io/karmada is affected in releases prior to 1.12.0. Upgrade your dependency to 1.12.0 or later.
What CWE is associated with CVE-2024-56513?
CVE-2024-56513 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-56513?
Run the dependency tree command: 'inspect dependencies for github.com/karmada-io/karmada'. 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-mg7w-c9x2-xh7r",
  "modified" : "2025-01-03T19:25:48Z",
  "published" : "2025-01-03T16:12:03Z",
  "aliases" : [ "CVE-2024-56513" ],
  "summary" : "Karmada PULL Mode Cluster Privilege Escalation",
  "details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nThe [PULL](https://karmada.io/docs/next/userguide/clustermanager/cluster-registration#pull-mode) mode clusters registered with the `karmadactl register` command have excessive privileges to access control plane resources. By abusing these permissions, an attacker able to authenticate as the karmada-agent to a karmada cluster would be able to obtain administrative privileges over the entire federation system including all registered member clusters.\n\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nSince Karmada v1.12.0, command `karmadactl register` restricts the access permissions of pull mode member clusters to control plane resources. This way, an attacker able to authenticate as the karmada-agent cannot control other member clusters in Karmada.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nRestricts the access permissions of pull mode member clusters to control plane resources according to [Karmada Component Permissions Docs](https://karmada.io/docs/administrator/security/component-permission).\n### References\n_Are there any links users can visit to find out more?_\n 1. Enhancements made from the Karmada community: https://github.com/karmada-io/karmada/pull/5793\n 2. Karmada Component Permissions: https://karmada.io/docs/administrator/security/component-permission\n",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/karmada-io/karmada"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/karmada-io/karmada/security/advisories/GHSA-mg7w-c9x2-xh7r"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-56513"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/karmada-io/karmada/pull/5793"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/karmada-io/karmada/commit/2c82055c4c7f469411b1ba48c4dba4841df04831"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/karmada-io/karmada"
  }, {
    "type" : "WEB",
    "url" : "https://karmada.io/docs/administrator/security/component-permission"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-266" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-03T16:12:03Z",
    "nvd_published_at" : "2025-01-03T17:15:08Z"
  }
}