Vulnerability · Published Oct 1, 2024 · Assigned by redhat

CVE-2024-9407Buildah: podman: improper input validation in bind-propagation option of dockerfile run --mount instruction

Medium 4.7

In plain English

A medium-severity improper input validation 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.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.7Medium
Exploit odds (30 days)0.3%top 78.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

A vulnerability exists in the bind-propagation option of the Dockerfile RUN --mount instruction. The system does not properly validate the input passed to this option, allowing users to pass arbitrary parameters to the mount instruction. This issue can be exploited to mount sensitive directories from the host into a container during the build process and, in some cases, modify the contents of those mounted files. Even if SELinux is used, this vulnerability can bypass its protection by allowing the source directory to be relabeled to give the container access to host files.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8aardvark-dns2:1.10.1-2.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8aardvark-dns2:1.10.1-2.module_el8.10.0+3909+6e1c1eb7ALSA-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:8buildah-tests2:1.33.10-1.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
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+3901+4b80ecd7ALSA-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:8crun1.14.3-2.module_el8.10.0+3876+e55593a8ALSA-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:8fuse-overlayfs1.13-1.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3792+03eaed9cALSA-2024:8846
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3858+6ad51f9fALSA-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+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8netavark2:1.10.3-1.module_el8.10.0+3858+6ad51f9fALSA-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+3845+87b84552ALSA-2024:8846
AlmaLinux:8oci-seccomp-bpf-hook1.2.10-1.module_el8.10.0+3876+e55593a8ALSA-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+3792+03eaed9cALSA-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:4.9.4-16.el9_4ALSA-2024:9051
AlmaLinux:9podman-docker4:5.2.2-9.el9_5ALSA-2024:9454
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+3901+4b80ecd7ALSA-2024:8846
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-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+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: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+3876+e55593a8ALSA-2024:8846
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3845+87b84552ALSA-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+3901+4b80ecd7ALSA-2024:8846
AlmaLinux:8toolbox-tests0.0.99.5-2.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux:8toolbox-tests0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:8846
AlmaLinux:8udica0.2.6-21.module_el8.10.0+3876+e55593a8ALSA-2024:8846
Alpine:v3.20buildah1.37.4-r0ALPINE-CVE-2024-9407
Alpine:v3.21buildah1.37.4-r0ALPINE-CVE-2024-9407
Alpine:v3.22buildah1.37.4-r0ALPINE-CVE-2024-9407
Alpine:v3.23buildah1.37.4-r0ALPINE-CVE-2024-9407
Alpine:v3.24buildah1.37.4-r0ALPINE-CVE-2024-9407
Alpine:v3.20podman5.2.4-r0ALPINE-CVE-2024-9407
Alpine:v3.21podman5.2.4-r0ALPINE-CVE-2024-9407
Alpine:v3.22podman5.2.4-r0ALPINE-CVE-2024-9407
Alpine:v3.23podman5.2.4-r0ALPINE-CVE-2024-9407
Alpine:v3.24podman5.2.4-r0ALPINE-CVE-2024-9407
Debian:12golang-github-containers-buildahno fix listedDEBIAN-CVE-2024-9407
Debian:13golang-github-containers-buildah1.37.4+ds1-1DEBIAN-CVE-2024-9407
Debian:14golang-github-containers-buildah1.37.4+ds1-1DEBIAN-CVE-2024-9407
Gogithub.com/containers/buildah1.37.4GHSA-fhqq-8f65-5xfc
Gogithub.com/containers/buildah1.37.4GO-2024-3169
Gogithub.com/containers/podman5.2.4GHSA-fhqq-8f65-5xfc
Gogithub.com/containers/podmanno fix listedGO-2024-3169
Gogithub.com/containers/podman/v2no fix listedGO-2024-3169
Gogithub.com/containers/podman/v25.2.4GHSA-fhqq-8f65-5xfc
Gogithub.com/containers/podman/v35.2.4GHSA-fhqq-8f65-5xfc
Gogithub.com/containers/podman/v3no fix listedGO-2024-3169
Gogithub.com/containers/podman/v4no fix listedGO-2024-3169
Gogithub.com/containers/podman/v45.2.4GHSA-fhqq-8f65-5xfc
Gogithub.com/containers/podman/v55.2.4GHSA-fhqq-8f65-5xfc
Gogithub.com/containers/podman/v55.2.4GO-2024-3169
Rocky Linux:9podman4:4.9.4-16.el9_4RLSA-2024:9051
Ubuntu:22.04:LTSgolang-github-containers-buildahno fix listedUBUNTU-CVE-2024-9407

Affected products (as reported)

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

References