What’s Vulnerable › Vulnerabilities
CVE-2024-9675: Buildah: buildah allows arbitrary directory mount
- Severity: medium (CVSS 4.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-10-09 · updated 2026-11-01
- Weakness: CWE-22
Description
A vulnerability was found in Buildah. Cache mounts do not properly validate that user-specified paths for the cache are within our cache directory, allowing a `RUN` instruction in a Container file to mount an arbitrary directory from the host (read/write) into the container as long as those files can be accessed by the user running Buildah.
Affected products
- Buildah Project Buildah: all versions
- Red Hat Enterprise Linux: 8.0, 9.0 (and their updates)
- RedHat Enterprise Linux Eus: 8.8, 9.0, 9.2, 9.4 (and their updates)
- RedHat Enterprise Linux For Arm 64: 8.0_aarch64, 9.0_aarch64 (and their updates)
- RedHat Enterprise Linux For Arm 64 Eus: 8.8_aarch64, 9.0_aarch64, 9.2_aarch64, 9.4_aarch64 (and their updates)
- RedHat Enterprise Linux For Ibm Z Systems: 8.0_s390x, 9.0_s390x (and their updates)
- RedHat Enterprise Linux For Ibm Z Systems Eus: 8.8_s390x, 9.0_s390x, 9.2_s390x, 9.4_s390x (and their updates)
- RedHat Enterprise Linux For Power Little Endian: 8.0_ppc64le, 9.0_ppc64le (and their updates)
- RedHat Enterprise Linux For Power Little Endian Eus: 8.8_ppc64le, 9.0_ppc64le, 9.2_ppc64le, 9.4_ppc64le (and their updates)
- RedHat Enterprise Linux Server Aus: 8.6, 9.2, 9.4 (and their updates)
- RedHat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions: 8.6_ppc64le, 8.8_ppc64le, 9.0_ppc64le, 9.2_ppc64le, 9.4_ppc64le (and their updates)
- RedHat Enterprise Linux Server Tus: 8.6, 8.8 (and their updates)
- RedHat Enterprise Linux Update Services For Sap Solutions: 8.6, 8.8, 9.0, 9.2, 9.4 (and their updates)
- Red Hat OpenShift Container Platform 4.18: 4.13, 4.14, 4.15, 4.16, 4.17 (and their updates)
- buildah: before 1.38.0 — fixed in 1.38.0
- Red Hat OpenShift Container Platform 4.18: all versions — fixed in 2:1.33.7-4.rhaos4.18.el9
- Red Hat OpenShift Developer Tools and Services: all versions
- Red Hat Quay 3: all versions — fixed in v3.13.2-1
- Red Hat Enterprise Linux 8: all versions — fixed in 8100020241023085649.afee755d
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: all versions — fixed in 8060020241028154646.3b538bd8
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service: all versions — fixed in 8060020241028154646.3b538bd8
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions: all versions — fixed in 8060020241028154646.3b538bd8
- Red Hat Enterprise Linux 8.8 Extended Update Support: all versions — fixed in 8080020241025064551.0f77c1b7
- Red Hat Enterprise Linux 9: all versions — fixed in 2:1.33.10-1.el9_4
- Red Hat Enterprise Linux 9.0 Extended Update Support: all versions — fixed in 1:1.26.8-2.el9_0
- Red Hat Enterprise Linux 9.2 Extended Update Support: all versions — fixed in 1:1.29.4-1.el9_2
- Red Hat OpenShift Container Platform 4.12: all versions — fixed in v4.12.0-202503181728.p0.ge355452.assembly.stream.el8
- Red Hat OpenShift Container Platform 4.13: all versions — fixed in 3:4.4.1-15.rhaos4.13.el8
- Red Hat OpenShift Container Platform 4.14: all versions — fixed in 3:4.4.1-21.rhaos4.14.el8
- Red Hat OpenShift Container Platform 4.15: all versions — fixed in 3:4.4.1-32.rhaos4.15.el8
How to fix
Upgrade to a fixed version: buildah 1.38.0; Red Hat OpenShift Container Platform 4.18 2:1.33.7-4.rhaos4.18.el9; Red Hat Quay 3 v3.13.2-1; Red Hat Enterprise Linux 8 8100020241023085649.afee755d; Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support 8060020241028154646.3b538bd8; Red Hat Enterprise Linux 8.6 Telecommunications Update Service 8060020241028154646.3b538bd8; Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions 8060020241028154646.3b538bd8; Red Hat Enterprise Linux 8.8 Extended Update Support 8080020241025064551.0f77c1b7; Red Hat Enterprise Linux 9 2:1.33.10-1.el9_4; Red Hat Enterprise Linux 9.0 Extended Update Support 1:1.26.8-2.el9_0; Red Hat Enterprise Linux 9.2 Extended Update Support 1:1.29.4-1.el9_2; Red Hat OpenShift Container Platform 4.12 v4.12.0-202503181728.p0.ge355452.assembly.stream.el8. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHBA-2024:10967
- https://access.redhat.com/errata/RHEA-2024:6126
- https://access.redhat.com/errata/RHSA-2024:8563
- https://access.redhat.com/errata/RHSA-2024:8675
- https://access.redhat.com/errata/RHSA-2024:8679
- https://access.redhat.com/errata/RHSA-2024:8686
- https://access.redhat.com/errata/RHSA-2024:8690
- https://access.redhat.com/errata/RHSA-2024:8700
- https://access.redhat.com/errata/RHSA-2024:8703
- https://access.redhat.com/errata/RHSA-2024:8707
- https://access.redhat.com/errata/RHSA-2024:8708
- https://access.redhat.com/errata/RHSA-2024:8709
Get alerted when CVE-2024-9675 or the next vulnerability affects your stack