ADVISORIES

Alpine Security Database

ALPINE-CVE-2021-3602

Details

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).

Affected packages

EcosystemPackageAffected versions
Alpine:v3.14buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.15buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.16buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.17buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.18buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.19buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.20buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.21buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.22buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.23buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.24buildah
From 1.21.0 before 1.21.3-r0 (fixed in 1.21.3-r0)
Alpine:v3.14podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)
Alpine:v3.15podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)
Alpine:v3.16podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)
Alpine:v3.17podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)
Alpine:v3.18podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)
Alpine:v3.19podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)
Alpine:v3.20podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)
Alpine:v3.21podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)
Alpine:v3.22podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)
Alpine:v3.23podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)
Alpine:v3.24podman
All versions before 3.2.3-r0 (fixed in 3.2.3-r0)

References