Buildah: buildah: container escape via improper bind mount validation
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 4.9.4, 5.0.1, 1.35.1, 1.34.3, 1.33.7, and 5 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: poc
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: poc · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- buildah
4.15.0
- container-tools:4.0
Version range not reported
- container-tools:rhel8
Version range not reported
- container-tools:rhel8
Version range not reported
- container-tools:4.0
Version range not reported
- container-tools:rhel8
Version range not reported
- buildah
Version range not reported
- podman
Version range not reported
- buildah
Version range not reported
- podman
Version range not reported
- buildah
Version range not reported
- podman
Version range not reported
- podman
Version range not reported
- podman
Version range not reported
- podman
Version range not reported
- podman
Version range not reported
- buildah
Version range not reported
- podman
Version range not reported
- podman
Version range not reported
- github.com/containers/podman/v4Go
fixed in 4.9.4
- github.com/containers/podman/v5Go
fixed in 5.0.1
- github.com/containers/buildahGo
From 1.35.0 · fixed in 1.35.1
- github.com/containers/buildahGo
From 1.34.0 · fixed in 1.34.3
- github.com/containers/buildahGo
From 1.33.0 · fixed in 1.33.7
- github.com/containers/buildahGo
From 1.25.0 · fixed in 1.27.4
- github.com/containers/buildahGo
From 1.24.0 · fixed in 1.24.7
- github.com/containers/buildahGo
From 1.28.0 · fixed in 1.29.3
- github.com/containers/buildahGo
From 1.30.0 · fixed in 1.31.5
- github.com/containers/buildahGo
From 1.32.0 · fixed in 1.32.3
- github.com/containers/buildahGo
fixed in 1.35.1
References 22
access.redhat.com
- errata/RHSA-2024:2049
- errata/RHSA-2024:2055
- errata/RHSA-2024:2064
- errata/RHSA-2024:2066
- errata/RHSA-2024:2077
- errata/RHSA-2024:2084
- errata/RHSA-2024:2089
- errata/RHSA-2024:2090
- errata/RHSA-2024:2097
- errata/RHSA-2024:2098
- errata/RHSA-2024:2548
- errata/RHSA-2024:2645
- errata/RHSA-2024:2669
- errata/RHSA-2024:2672
- errata/RHSA-2024:2784
- errata/RHSA-2024:2877
- errata/RHSA-2024:3254
- security/cve/CVE-2024-1753