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

exploitDog

nvd логотип

CVE-2021-21251

Опубликовано: 15 янв. 2021
Источник: nvd
CVSS3: 7.7
CVSS3: 8.8
CVSS2: 6.5
EPSS Низкий

Описание

OneDev is an all-in-one devops platform. In OneDev before version 4.0.3 there is a critical "zip slip" vulnerability. This issue may lead to arbitrary file write. The KubernetesResource REST endpoint untars user controlled data from the request body using TarUtils. TarUtils is a custom library method leveraging Apache Commons Compress. During the untar process, there are no checks in place to prevent an untarred file from traversing the file system and overriding an existing file. For a successful exploitation, the attacker requires a valid JobToken which may not be possible to get without using any of the other reported vulnerabilities. But this should be considered a vulnerability in io.onedev.commons.utils.TarUtils since it lives in a different artifact and can affect other projects using it. This issue was addressed in 4.0.3 by validating paths in tar archive to only allow them to be in specified folder when extracted.

Уязвимые конфигурации

Конфигурация 1
cpe:2.3:a:onedev_project:onedev:*:*:*:*:*:*:*:*
Версия до 4.0.3 (исключая)

EPSS

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

7.7 High

CVSS3

8.8 High

CVSS3

6.5 Medium

CVSS2

Дефекты

CWE-22

EPSS

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

7.7 High

CVSS3

8.8 High

CVSS3

6.5 Medium

CVSS2

Дефекты

CWE-22