Buildah: full container escape at build time
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 8.6epss 0.5%
exploitation probability
0.5%top 59% of all CVEs
observed exploitation
nono source reports it
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.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Affected products
buildahRed Hat · Red Hat Enterprise Linux 7Red Hat · Red Hat Enterprise Linux 8Red Hat · Red Hat Enterprise Linux 8.6 Extended Update SupportRed Hat · Red Hat Enterprise Linux 8.8 Extended Update SupportRed Hat · Red Hat Enterprise Linux 9Red Hat · Red Hat Enterprise Linux 9.0 Extended Update SupportRed Hat · Red Hat Enterprise Linux 9.2 Extended Update SupportRed Hat · Red Hat OpenShift Container Platform 3.11Red Hat · Red Hat OpenShift Container Platform 4.12Red Hat · Red Hat OpenShift Container Platform 4.13Red Hat · Red Hat OpenShift Container Platform 4.14Red Hat · Red Hat OpenShift Container Platform 4.15References
https://access.redhat.com/errata/RHSA-2024:2049https://access.redhat.com/errata/RHSA-2024:2055https://access.redhat.com/errata/RHSA-2024:2064https://access.redhat.com/errata/RHSA-2024:2066https://access.redhat.com/errata/RHSA-2024:2077https://access.redhat.com/errata/RHSA-2024:2084https://access.redhat.com/errata/RHSA-2024:2089https://access.redhat.com/errata/RHSA-2024:2090https://access.redhat.com/errata/RHSA-2024:2097https://access.redhat.com/errata/RHSA-2024:2098https://access.redhat.com/errata/RHSA-2024:2548https://access.redhat.com/errata/RHSA-2024:2645