Karmada CRD Tar Slip Vulnerability Allowing Arbitrary File Write

Vulnerability

A vulnerability exists in Karmada's command-line tool, 'karmadactl', and the 'karmada-operator' component, prior to version 1.12.0. These versions allow users to specify a filesystem path or an HTTP(s) URL to download custom resource definitions (CRDs) as a gzipped tar file. This CRD handling is susceptible to a Tar Slip vulnerability, where an attacker can manipulate the CRD file to write arbitrary files to any location on the filesystem during Karmada initialization. From version 1.12.0 onwards, Karmada includes a verification process for CRD archives to prevent such vulnerabilities. Users can manually inspect CRD files for malicious content before uploading them.

Impact

Exploitation of this vulnerability could lead to unauthorized file writes on the system, potentially overwriting critical files or disrupting system operations.

Reproduction

To reproduce this vulnerability, download a CRD tarball that contains a tar slip payload, such as one including relative paths that could be interpreted as directory traversal sequences. Then, use 'karmadactl init' or 'karmada-operator' to initialize Karmada, specifying the malicious CRD file. The tar slip payload will be executed, writing files to the filesystem as directed by the payload.

Remediation

Users can upgrade to Karmada version 1.12.0 or later, where this vulnerability is patched. If an upgrade is not possible, CRD files can be manually inspected for relative path manipulations before use.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.4
remediation
7.7
relevance
0.0
threat
4.8
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.