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

exploitDog

github логотип

GHSA-5vpc-35f4-r8w6

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

Описание

Buildah allows build breakout using malicious Containerfiles and concurrent builds

Impact

With careful use of the --mount flag in RUN instructions in Containerfiles, and by using either multi-stage builds with use of concurrently-executing build stages (e.g., using the --jobs CLI flag) or multiple separate but concurrently-executing builds, a malicious Containerfile can be used to expose content from the build host to the command being run using the RUN instruction. This can be used to read or write contents using the privileges of the process which is performing the build. When that process is a root-owned podman system service which is provided for use by unprivileged users, this includes the ability to read and write contents which the client should not be allowed to read and write, including setuid executables in locations where they can be later accessed by unprivileged users.

Patches

Patches have been merged to the main branch, and will be added to upcoming releases on the release-1.38, release-1.37, release-1.35, and release-1.33 branches.

This addressed a number of Jira cards, but primarily https://issues.redhat.com/browse/RHEL-67616 and https://issues.redhat.com/browse/RHEL-67618, which were then vendored into Podman and backported into olde rbranches.

Workarounds

Mandatory access controls should limit the access of the process performing the build, on systems where they are enabled.

Ссылки

Пакеты

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

github.com/containers/buildah

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

>= 1.38.0, < 1.38.1

1.38.1

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

github.com/containers/buildah

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

>= 1.37.0, < 1.37.6

1.37.6

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

github.com/containers/buildah

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

>= 1.35.0, < 1.35.5

1.35.5

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

github.com/containers/buildah

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

< 1.33.12

1.33.12

EPSS

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

8.6 High

CVSS3

Дефекты

CWE-269

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

CVSS3: 8.6
ubuntu
5 месяцев назад

A vulnerability was found in `podman build` and `buildah.` This issue occurs in a container breakout by using --jobs=2 and a race condition when building a malicious Containerfile. SELinux might mitigate it, but even with SELinux on, it still allows the enumeration of files and directories on the host.

CVSS3: 8.6
redhat
5 месяцев назад

A vulnerability was found in `podman build` and `buildah.` This issue occurs in a container breakout by using --jobs=2 and a race condition when building a malicious Containerfile. SELinux might mitigate it, but even with SELinux on, it still allows the enumeration of files and directories on the host.

CVSS3: 8.6
nvd
5 месяцев назад

A vulnerability was found in `podman build` and `buildah.` This issue occurs in a container breakout by using --jobs=2 and a race condition when building a malicious Containerfile. SELinux might mitigate it, but even with SELinux on, it still allows the enumeration of files and directories on the host.

CVSS3: 8.6
debian
5 месяцев назад

A vulnerability was found in `podman build` and `buildah.` This issue ...

suse-cvrf
4 месяца назад

Security update for podman

EPSS

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

8.6 High

CVSS3

Дефекты

CWE-269