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

exploitDog

github логотип

GHSA-63qx-x74g-jcr7

Опубликовано: 07 фев. 2022
Источник: github
Github: Прошло ревью
CVSS3: 7.7

Описание

Path traversal and dereference of symlinks in Argo CD

Impact

All versions of Argo CD are vulnerable to a path traversal bug that allows to pass arbitrary values files to be consumed by Helm charts.

Additionally, it is possible to craft special Helm chart packages containing value files that are actually symbolic links, pointing to arbitrary files outside the repository's root directory.

If an attacker with permissions to create or update Applications knows or can guess the full path to a file containing valid YAML, they can create a malicious Helm chart to consume that YAML as values files, thereby gaining access to data they would otherwise have no access to.

The impact can especially become critical in environments that make use of encrypted value files (e.g. using plugins with git-crypt or SOPS) containing sensitive or confidential data, and decrypt these secrets to disk before rendering the Helm chart.

Also, because any error message from helm template is passed back to the user, and these error messages are quite verbose, enumeration of files on the repository server's file system is possible.

Patches

A patch for this vulnerability has been released in the following Argo CD versions:

  • v2.3.0
  • v2.2.4
  • v2.1.9

We urge users of Argo CD to update their installation to one of the fixed versions as listed above.

Workarounds

No workaround for this issue.

References

For more information

Credits

The path traversal vulnerability was discovered and reported by Moshe Zioni, VP Security Research, Apiiro.

During the development of a fix for the path traversal vulnerability, the Argo CD team discovered the related issue with symbolic links.

The Argo CD team would like to thank Moshe Zioni for the responsible disclosure, and the constructive discussions during handling this issue!

Пакеты

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

github.com/argoproj/argo-cd/v2

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

< 2.1.9

2.1.9

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

github.com/argoproj/argo-cd/v2

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

>= 2.2.0, < 2.2.4

2.2.4

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

github.com/argoproj/argo-cd

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

< 2.1.9

2.1.9

EPSS

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

7.7 High

CVSS3

Дефекты

CWE-200
CWE-22

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

CVSS3: 7.7
redhat
около 4 лет назад

Argo CD before 2.1.9 and 2.2.x before 2.2.4 allows directory traversal related to Helm charts because of an error in helmTemplate in repository.go. For example, an attacker may be able to discover credentials stored in a YAML file.

CVSS3: 7.7
nvd
около 4 лет назад

Argo CD before 2.1.9 and 2.2.x before 2.2.4 allows directory traversal related to Helm charts because of an error in helmTemplate in repository.go. For example, an attacker may be able to discover credentials stored in a YAML file.

EPSS

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

7.7 High

CVSS3

Дефекты

CWE-200
CWE-22