Vulnerability · Published Oct 9, 2024 · Assigned by redhat

CVE-2024-9675Buildah: buildah allows arbitrary directory mount

High 7.8

In plain English

A high-severity path traversal in buildah. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.4%top 66.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8aardvark-dns2:1.10.1-2.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8aardvark-dns2:1.10.1-2.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8buildah2:1.33.10-1.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:9buildah2:1.37.5-1.el9_5ALSA-2024:9459
AlmaLinux:9buildah2:1.33.10-1.el9_4ALSA-2024:8563
AlmaLinux:8buildah-tests2:1.33.10-1.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:9buildah-tests2:1.33.10-1.el9_4ALSA-2024:8563
AlmaLinux:9buildah-tests2:1.37.5-1.el9_5ALSA-2024:9459
AlmaLinux:8cockpit-podman84.1-1.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8container-selinux2:2.229.0-2.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8containers-common2:1-82.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8containers-common2:1-82.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8crit3.18-5.module_el8.10.0+3858+6ad51f9fALSA-2024:8846
AlmaLinux:8crit3.18-5.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8crit3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8criu3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8criu3.18-5.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8criu3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8criu-devel3.18-5.module_el8.10.0+3858+6ad51f9fALSA-2024:8846
AlmaLinux:8criu-devel3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8criu-devel3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8criu-libs3.18-5.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8criu-libs3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8criu-libs3.18-5.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8crun1.14.3-2.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8crun1.14.3-2.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8crun1.14.3-2.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3792+03eaed9cALSA-2024:8846
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3858+6ad51f9fALSA-2024:8846
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8netavark2:1.10.3-1.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8netavark2:1.10.3-1.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8netavark2:1.10.3-1.module_el8.10.0+3858+6ad51f9fALSA-2024:8846
AlmaLinux:8oci-seccomp-bpf-hook1.2.10-1.module_el8.10.0+3792+03eaed9cALSA-2024:8846
AlmaLinux:8oci-seccomp-bpf-hook1.2.10-1.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8oci-seccomp-bpf-hook1.2.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8podman4:4.9.4-15.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:9podman4:4.9.4-16.el9_4ALSA-2024:9051
AlmaLinux:9podman4:5.2.2-9.el9_5ALSA-2024:9454
AlmaLinux:8podman-catatonit4:4.9.4-15.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8podman-docker4:4.9.4-15.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:9podman-docker4:5.2.2-9.el9_5ALSA-2024:9454
AlmaLinux:9podman-docker4:4.9.4-16.el9_4ALSA-2024:9051
AlmaLinux:8podman-gvproxy4:4.9.4-15.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8podman-plugins4:4.9.4-15.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:9podman-plugins4:4.9.4-16.el9_4ALSA-2024:9051
AlmaLinux:9podman-plugins4:5.2.2-9.el9_5ALSA-2024:9454
AlmaLinux:8podman-remote4:4.9.4-15.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:9podman-remote4:4.9.4-16.el9_4ALSA-2024:9051
AlmaLinux:9podman-remote4:5.2.2-9.el9_5ALSA-2024:9454
AlmaLinux:8podman-tests4:4.9.4-15.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:9podman-tests4:5.2.2-9.el9_5ALSA-2024:9454
AlmaLinux:9podman-tests4:4.9.4-16.el9_4ALSA-2024:9051
AlmaLinux:8python3-criu3.18-5.module_el8.10.0+3858+6ad51f9fALSA-2024:8846
AlmaLinux:8python3-criu3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8python3-criu3.18-5.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8python3-podman4.9.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8runc1:1.1.12-5.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8skopeo2:1.14.5-3.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8skopeo2:1.14.5-3.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8skopeo2:1.14.5-3.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8skopeo-tests2:1.14.5-3.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8skopeo-tests2:1.14.5-3.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:8846
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8toolbox-tests0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:8846
AlmaLinux:8toolbox-tests0.0.99.5-2.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8udica0.2.6-21.module_el8.10.0+3876+e55593a8ALSA-2024:8846
Alpine:v3.20buildah1.37.5-r0ALPINE-CVE-2024-9675
Alpine:v3.21buildah1.37.5-r0ALPINE-CVE-2024-9675
Alpine:v3.22buildah1.37.5-r0ALPINE-CVE-2024-9675
Alpine:v3.23buildah1.37.5-r0ALPINE-CVE-2024-9675
Alpine:v3.24buildah1.37.5-r0ALPINE-CVE-2024-9675
Alpine:v3.20podman5.2.5-r0ALPINE-CVE-2024-9675
Alpine:v3.21podman5.2.5-r0ALPINE-CVE-2024-9675
Alpine:v3.22podman5.2.5-r0ALPINE-CVE-2024-9675
Alpine:v3.23podman5.2.5-r0ALPINE-CVE-2024-9675
Alpine:v3.24podman5.2.5-r0ALPINE-CVE-2024-9675
Debian:12golang-github-containers-buildahno fix listedDEBIAN-CVE-2024-9675
Debian:13golang-github-containers-buildah1.37.4+ds1-1DEBIAN-CVE-2024-9675
Debian:14golang-github-containers-buildah1.37.4+ds1-1DEBIAN-CVE-2024-9675
Gogithub.com/containers/buildah1.38.0GHSA-586p-749j-fhwp
Gogithub.com/containers/buildah1.37.1GO-2024-3186
Rocky Linux:9buildah2:1.33.10-1.el9_4RLSA-2024:8563
Rocky Linux:9podman4:4.9.4-16.el9_4RLSA-2024:9051
Ubuntu:22.04:LTSgolang-github-containers-buildahno fix listedUBUNTU-CVE-2024-9675

Affected products (as reported)

VendorProductVersions
buildah 0 – before 1.38.0
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support see references
Red Hat Red Hat OpenShift Container Platform 4.12 see references
Red Hat Red Hat OpenShift Container Platform 4.13 see references
Red Hat Red Hat OpenShift Container Platform 4.13 see references
Red Hat Red Hat OpenShift Container Platform 4.14 see references
Red Hat Red Hat OpenShift Container Platform 4.14 see references
Red Hat Red Hat OpenShift Container Platform 4.15 see references
Red Hat Red Hat OpenShift Container Platform 4.15 see references
Red Hat Red Hat OpenShift Container Platform 4.16 see references
Red Hat Red Hat OpenShift Container Platform 4.16 see references
Red Hat Red Hat OpenShift Container Platform 4.17 see references
Red Hat Red Hat OpenShift Container Platform 4.17 see references
Red Hat Red Hat OpenShift Container Platform 4.18 see references
Red Hat Red Hat OpenShift Container Platform 4.18 see references
Red Hat Red Hat OpenShift Container Platform 4.18 see references
Red Hat Red Hat OpenShift Container Platform 4.18 see references
Red Hat Red Hat OpenShift Container Platform 4.18 see references

Weakness: CWE-22 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References