high7.8
CVE-2024-9675
Buildah allows arbitrary directory mount
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/containers/buildah | < 1.38.0 | 1.38.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Buildah Project | Buildah | All versions |
| Redhat | Openshift Container Platform | Versions 4.13, 4.14, 4.15, 4.16, 4.17 |
| Redhat | Enterprise Linux | Versions 8.0, 9.0 |
| Redhat | Enterprise Linux Eus | Versions 8.8, 9.0, 9.2, 9.4 |
| Redhat | Enterprise Linux For Arm 64 | Versions 8.0_aarch64, 9.0_aarch64 |
| Redhat | Enterprise Linux For Arm 64 Eus | Versions 8.8_aarch64, 9.0_aarch64, 9.2_aarch64, 9.4_aarch64 |
| Redhat | Enterprise Linux For Ibm Z Systems | Versions 8.0_s390x, 9.0_s390x |
| Redhat | Enterprise Linux For Ibm Z Systems Eus | Versions 8.8_s390x, 9.0_s390x, 9.2_s390x, 9.4_s390x |
| Redhat | Enterprise Linux For Power Little Endian | Versions 8.0_ppc64le, 9.0_ppc64le |
| Redhat | Enterprise Linux For Power Little Endian Eus | Versions 8.8_ppc64le, 9.0_ppc64le, 9.2_ppc64le, 9.4_ppc64le |
| Redhat | Enterprise Linux Server Aus | Versions 8.6, 9.2, 9.4 |
| Redhat | Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions | Versions 8.6_ppc64le, 8.8_ppc64le, 9.0_ppc64le, 9.2_ppc64le, 9.4_ppc64le |
| Red Hat | Red Hat OpenShift Container Platform 4.14 | Versions patch: 3:4.4.1-21.rhaos4.14.el8, patch: v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8 |
| Red Hat | Red Hat OpenShift Container Platform 4.18 | Versions patch: 0:4.18.0-202412111238.p0.g9c24d76.assembly.stream.el8, patch: 1:5.5.0-0.20240926163413.a635649.el9, patch: 0:2.1-2.el9, patch: 0:4.2.0-20.el9.1, patch: 0:4.4.2-6.0.el9, patch: 0:4.18.0-202502032331.p0.ga50d4c0.assembly.stream.el8 |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | Versions patch: 2:4.2.0-5.el9_0.2, patch: 1:1.26.8-2.el9_0 |
| Red Hat | Red Hat OpenShift Container Platform 4.12 | Version patch: v4.12.0-202503181728.p0.ge355452.assembly.stream.el8 |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | Version patch: 8060020241028154646.3b538bd8 |
| Red Hat | Red Hat OpenShift Container Platform 4.16 | Versions patch: 4:4.9.4-12.rhaos4.16.el8, patch: v4.16.0-202503121138.p0.g31c3c26.assembly.stream.el9 |
| Red Hat | Red Hat Quay 3 | Versions patch: v3.13.2-11, patch: v3.13.2-1, patch: v3.13.2-10, patch: v3.13.2-2, patch: v3.13.2-4 |
| Red Hat | Red Hat OpenShift Container Platform 4.17 | Versions patch: v4.17.0-202503041005.p0.gc3b0999.assembly.stream.el9, patch: 5:5.2.2-1.rhaos4.17.el8 |
| Red Hat | Red Hat Enterprise Linux 9 | Versions patch: 2:1.37.5-1.el9_5, patch: 4:4.9.4-16.el9_4, patch: 2:1.33.10-1.el9_4, patch: 4:5.2.2-9.el9_5 |
| Red Hat | Red Hat OpenShift Container Platform 4.15 | Versions patch: 3:4.4.1-32.rhaos4.15.el8, patch: v4.15.0-202503060734.p0.gbc0b789.assembly.stream.el8 |
| Red Hat | Red Hat Enterprise Linux 8 | Version patch: 8100020241023085649.afee755d |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | Version patch: 8080020241025064551.0f77c1b7 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-586p-749j-fhwp
- https://nvd.nist.gov/vuln/detail/CVE-2024-9675
- https://access.redhat.com/security/cve/CVE-2024-9675
- https://bugzilla.redhat.com/show_bug.cgi?id=2317458
- https://github.com/containers/buildah/commit/aa67e5d71ee7ec07122a210baa3b13966a9e086c
- https://pkg.go.dev/vuln/GO-2024-3186
- 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: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
- https://access.redhat.com/errata/RHSA-2024:8846
- https://access.redhat.com/errata/RHSA-2024:8686
- https://access.redhat.com/errata/RHSA-2024:8690
- https://access.redhat.com/errata/RHSA-2024:9051
- https://access.redhat.com/errata/RHSA-2024:8700
- https://access.redhat.com/errata/RHSA-2024:9459
- https://access.redhat.com/errata/RHSA-2024:9454
- https://access.redhat.com/errata/RHSA-2024:8984
- https://access.redhat.com/errata/RHSA-2024:8994
- https://access.redhat.com/errata/RHSA-2025:2454
- https://access.redhat.com/errata/RHSA-2025:2449
- https://access.redhat.com/errata/RHSA-2025:2445