CVE-2024-1753
buildah: Buildah: Container escape via improper bind mount validation
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · March 18, 2024
Updated · September 25, 2026
Description
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.
Statement
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.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
When SELinux is enabled, the container is restricted to limited read-only access.
CVSS / CWE
CVSS 3.1 · 8.6CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CWE-59 · Improper Link Resolution Before File Access ('Link Following')