FlawAtlas
Search the atlas
CVE-2024-9407 Moderate

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

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.

Exploit probability 0.3%
Published October 1, 2024
Required by Not available
Last source change August 12, 2026

02 / AFFECTED SOFTWARE

Affected packages

Unknown Unknown

31 explicit affected versions

Go github.com/containers/buildah
Go github.com/containers/podman
Go github.com/containers/podman/v2
Go github.com/containers/podman/v3
Go github.com/containers/podman/v4
Go github.com/containers/podman/v5
Go github.com/containers/buildah
Go github.com/containers/podman
Go github.com/containers/podman/v2
Go github.com/containers/podman/v3
Go github.com/containers/podman/v4
Go github.com/containers/podman/v5

03 / CONNECTIONS

Connected vulnerabilities

04 / EVIDENCE

Source records

Open Source Vulnerabilities CVE-2024-9407

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.

View original source
Open Source Vulnerabilities GHSA-fhqq-8f65-5xfc

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.

View original source
Open Source Vulnerabilities GO-2024-3169

Improper Input Validation in Buildah and Podman in github.com/containers/buildah

View original source

05 / REFERENCES

Further evidence