ADVISORIES

Alpine Security Database

ALPINE-CVE-2024-1753

Details

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.

Affected packages

EcosystemPackageAffected versions
Alpine:v3.20buildah
All versions before 1.35.4-r0 (fixed in 1.35.4-r0)
Alpine:v3.21buildah
All versions before 1.35.4-r0 (fixed in 1.35.4-r0)
Alpine:v3.22buildah
All versions before 1.35.4-r0 (fixed in 1.35.4-r0)
Alpine:v3.23buildah
All versions before 1.35.4-r0 (fixed in 1.35.4-r0)
Alpine:v3.24buildah
All versions before 1.35.4-r0 (fixed in 1.35.4-r0)
Alpine:v3.20podman
All versions before 4.9.4-r0 (fixed in 4.9.4-r0)
Alpine:v3.21podman
All versions before 4.9.4-r0 (fixed in 4.9.4-r0)
Alpine:v3.22podman
All versions before 4.9.4-r0 (fixed in 4.9.4-r0)
Alpine:v3.23podman
All versions before 4.9.4-r0 (fixed in 4.9.4-r0)
Alpine:v3.24podman
All versions before 4.9.4-r0 (fixed in 4.9.4-r0)

References