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

exploitDog

github логотип

GHSA-7638-r9r3-rmjj

Опубликовано: 19 июл. 2021
Источник: github
Github: Прошло ревью
CVSS3: 5.5

Описание

Buildah processes using chroot isolation may leak environment values to intermediate processes

Impact

When running processes using "chroot" isolation, the process being run can examine the environment variables of its immediate parent and grandparent processes (CVE-2021-3602). This isolation type is often used when running buildah in unprivileged containers, and it is often used to do so in CI/CD environments. If sensitive information is exposed to the original buildah process through its environment, that information will unintentionally be shared with child processes which it starts as part of handling RUN instructions or during buildah run. The commands that buildah is instructed to run can read that information if they choose to.

Patches

Users should upgrade packages, or images which contain packages, to include version 1.21.3 or later.

Workarounds

As a workaround, invoking buildah in a container under env -i to have it started with a reinitialized environment should prevent the leakage.

For more information

If you have any questions or comments about this advisory:

Пакеты

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

github.com/containers/buildah

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

<= 1.16.7

1.16.8

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

github.com/containers/buildah

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

>= 1.17.0, <= 1.17.1

1.17.2

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

github.com/containers/buildah

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

>= 1.18.0, <= 1.19.8

1.19.9

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

github.com/containers/buildah

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

>= 1.20.0, <= 1.21.2

1.21.3

EPSS

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

5.5 Medium

CVSS3

Дефекты

CWE-200
CWE-212

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

CVSS3: 5.5
ubuntu
больше 3 лет назад

An information disclosure flaw was found in Buildah, when building containers using chroot isolation. Running processes in container builds (e.g. Dockerfile RUN commands) can access environment variables from parent and grandparent processes. When run in a container in a CI/CD environment, environment variables may include sensitive information that was shared with the container in order to be used only by Buildah itself (e.g. container registry credentials).

CVSS3: 5.6
redhat
почти 4 года назад

An information disclosure flaw was found in Buildah, when building containers using chroot isolation. Running processes in container builds (e.g. Dockerfile RUN commands) can access environment variables from parent and grandparent processes. When run in a container in a CI/CD environment, environment variables may include sensitive information that was shared with the container in order to be used only by Buildah itself (e.g. container registry credentials).

CVSS3: 5.5
nvd
больше 3 лет назад

An information disclosure flaw was found in Buildah, when building containers using chroot isolation. Running processes in container builds (e.g. Dockerfile RUN commands) can access environment variables from parent and grandparent processes. When run in a container in a CI/CD environment, environment variables may include sensitive information that was shared with the container in order to be used only by Buildah itself (e.g. container registry credentials).

CVSS3: 5.5
msrc
около 1 года назад

Описание отсутствует

CVSS3: 5.5
debian
больше 3 лет назад

An information disclosure flaw was found in Buildah, when building con ...

EPSS

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

5.5 Medium

CVSS3

Дефекты

CWE-200
CWE-212