CVE-2024-9407
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.
How to fix
- github.com/containers/buildah1.37.4 or later
- github.com/containers/podman/v55.2.4 or later
- github.com/containers/podman5.2.4 or later
- github.com/containers/podman/v25.2.4 or later
- github.com/containers/podman/v35.2.4 or later
- github.com/containers/podman/v45.2.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/containers/buildahGo | v < 1.37.4 | 1.37.4 |
| github.com/containers/podman/v5Go | v < 5.2.4 | 5.2.4 |
| github.com/containers/podmanGo | v < 5.2.4, No range specified | 5.2.4 |
| github.com/containers/podman/v2Go | v < 5.2.4, No range specified | 5.2.4 |
| github.com/containers/podman/v3Go | v < 5.2.4, No range specified | 5.2.4 |
| github.com/containers/podman/v4Go | v < 5.2.4, No range specified | 5.2.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.