Описание
A flaw was found in Buildah (and subsequently Podman Build) which allows containers to mount arbitrary locations on the host filesystem into build containers. A malicious Containerfile can use a dummy image with a symbolic link to the root filesystem as a mount source and cause the mount operation to mount the host root filesystem inside the RUN step. The commands inside the RUN step will then have read-write access to the host filesystem, allowing for full container escape at build time.
Отчет
Red Hat has rated this vulnerability as Important rather than Critical because successful exploitation requires user interaction to process a maliciously crafted Containerfile. Additionally, default security hardening in Red Hat Enterprise Linux—specifically SELinux running in Enforcing mode—prevents unauthorized write access to host system files, restricting the potential breakout primarily to unauthorized read operations. Environments where container builds are executed with elevated host permissions against untrusted source definitions face the highest risk.
Меры по смягчению последствий
When SELinux is enabled, the container is restricted to limited read-only access.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 7 | buildah | Not affected | ||
| Red Hat Enterprise Linux 7 | podman | Out of support scope | ||
| Red Hat OpenShift Container Platform 3.11 | podman | Out of support scope | ||
| Red Hat Enterprise Linux 8 | container-tools | Fixed | RHSA-2024:2084 | 29.04.2024 |
| Red Hat Enterprise Linux 8 | container-tools | Fixed | RHSA-2024:2098 | 29.04.2024 |
| Red Hat Enterprise Linux 8 | container-tools | Fixed | RHSA-2024:3254 | 22.05.2024 |
| Red Hat Enterprise Linux 8.6 Extended Update Support | container-tools | Fixed | RHSA-2024:2090 | 30.04.2024 |
| Red Hat Enterprise Linux 8.6 Extended Update Support | container-tools | Fixed | RHSA-2024:2097 | 29.04.2024 |
| Red Hat Enterprise Linux 8.8 Extended Update Support | container-tools | Fixed | RHSA-2024:2077 | 29.04.2024 |
| Red Hat Enterprise Linux 9 | buildah | Fixed | RHSA-2024:2055 | 25.04.2024 |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
8.6 High
CVSS3
Связанные уязвимости
A flaw was found in Buildah (and subsequently Podman Build) which allows containers to mount arbitrary locations on the host filesystem into build containers. A malicious Containerfile can use a dummy image with a symbolic link to the root filesystem as a mount source and cause the mount operation to mount the host root filesystem inside the RUN step. The commands inside the RUN step will then have read-write access to the host filesystem, allowing for full container escape at build time.
A flaw was found in Buildah (and subsequently Podman Build) which allows containers to mount arbitrary locations on the host filesystem into build containers. A malicious Containerfile can use a dummy image with a symbolic link to the root filesystem as a mount source and cause the mount operation to mount the host root filesystem inside the RUN step. The commands inside the RUN step will then have read-write access to the host filesystem, allowing for full container escape at build time.
A flaw was found in Buildah (and subsequently Podman Build) which allo ...
EPSS
8.6 High
CVSS3