Vulnerability · Published Jan 3, 2025 · Assigned by GitHub_M
CVE-2024-56514Karmada Tar Slips in CRDs archive extraction
Medium 5.3
In plain English
A medium-severity path traversal in karmada from karmada-io. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/karmada-io/karmada | 1.12.0 | GHSA-cwrh-575j-8vr3 |
| Go | github.com/karmada-io/karmada | 1.12.0 | GO-2025-3363 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| karmada-io | karmada | < 1.12.0 |
Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/karmada-io/karmada/security/advisories/GHSA-cwrh-575j-8vr3 x_refsource_CONFIRM
- https://github.com/karmada-io/karmada/pull/5703 x_refsource_MISC
- https://github.com/karmada-io/karmada/pull/5713 x_refsource_MISC
- https://github.com/karmada-io/karmada/commit/40ec488b18a461ab0f871d2c9ec8665b361f0d50 x_refsource_MISC
- https://github.com/karmada-io/karmada/commit/f78e7e2a3d02bed04e9bc7abd3ae7b3ac56862d2 x_refsource_MISC