Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-cwrh-575j-8vr3

Опубликовано: 03 янв. 2025
Источник: github
Github: Прошло ревью
CVSS4: 5.3

Описание

Karmada Tar Slips in CRDs archive extraction

Impact

What kind of vulnerability is it? Who is impacted?

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.

Patches

Has the problem been patched? What versions should users upgrade to?

From karmada version v1.12.0, when processing custom CRDs files, CRDs archive verification is utilized to enhance file system robustness.

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

When using karmadactl init to set up Karmada, if you need to set flag --crd to customize the CRD files required for karmada initialization, you 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, you must upgrade your karmada-operator to one of the fixed versions.

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/5713, https://github.com/karmada-io/karmada/pull/5703

Пакеты

Наименование

github.com/karmada-io/karmada

go
Затронутые версииВерсия исправления

< 1.12.0

1.12.0

EPSS

Процентиль: 65%
0.00494
Низкий

5.3 Medium

CVSS4

Дефекты

CWE-22

Связанные уязвимости

nvd
около 1 года назад

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 pat

CVSS3: 4.3
fstec
около 1 года назад

Уязвимость пакетов karmada-operator и karmadactl системы управления кластерами Kubernetes для запуска облачных приложения на нескольких кластерах Karmada, позволяющая нарушителю записывать произвольные файлы в базовой файловой системе

suse-cvrf
около 1 года назад

Security update for govulncheck-vulndb

EPSS

Процентиль: 65%
0.00494
Низкий

5.3 Medium

CVSS4

Дефекты

CWE-22