CVE-2024-56514 Karmada Tar Slips in CRDs archive extraction
Attackers can write arbitrary files via malicious CRD archives during Karmada initialization, potentially leading to code execution or data modification.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-56514?
CVE-2024-56514 is a medium-severity path traversal vulnerability in karmada-io karmada, published on 3 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Karmada is a Kubernetes management system that allows users to run cloud-native applications across multiple Kubernetes clusters and clouds. Prior to version 1.12.0, both in karmadactl and karmada-operator, it is possible to supply a filesystem path, or an HTTP(s) URL to retrieve the custom resource definitions(CRDs) needed by Karmada. The CRDs are downloaded as a gzipped tarfile and are vulnerable to a TarSlip vulnerability. An attacker able to supply a malicious CRD file into a Karmada initialization could write arbitrary files in arbitrary paths of the filesystem. From Karmada version 1.12.0, when processing custom CRDs files, CRDs archive verification is utilized to enhance file system robustness. A workaround is available. Someone who needs to set flag `--crd` to customize the CRD files required for Karmada initialization when using `karmadactl init` to set up Karmada can manually inspect the CRD files to check whether they contain sequences such as `../` that would alter file paths, to determine if they potentially include malicious files. When using karmada-operator to set up Karmada, one must upgrade one's karmada-operator to one of the fixed versions.
Weakness: CWE-22
Which versions are affected by CVE-2024-56514?
3 open source packages ship an affected version, including github.com/karmada-io/karmada.
| Package | Affected | Fixed in |
|---|---|---|
github.com/karmada-io/karmada Go | All versions | 1.12.0 |
github.com/karmada-io/karmada Go | All versions | 1.12.0 |
github.com/karmada-io/karmada Go | All versions | 1.12.0 |
How do I fix CVE-2024-56514?
Upgrade github.com/karmada-io/karmada to 1.12.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-56514 being exploited?
There is no known exploitation of CVE-2024-56514 in the wild and no public exploit code.
Sources
Also known as GHSA-cwrh-575j-8vr3, GO-2025-3363.