CVE-2024-9407: Improper Input Validation in Buildah and Podman
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.
Published Oct 1, 2024 · Updated Dec 20, 2024
Affected packages
github.com/containers/buildah
- Ecosystem
- Go
- Affected
- <= 1.37.3
- Fixed in
- 1.37.4
- Check
go list -m github.com/containers/buildah
github.com/containers/podman/v5
- Ecosystem
- Go
- Affected
- <= 5.2.3
- Fixed in
- 5.2.4
- Check
go list -m github.com/containers/podman/v5
github.com/containers/podman
- Ecosystem
- Go
- Affected
- <= 5.2.3
- Fixed in
- 5.2.4
- Check
go list -m github.com/containers/podman
github.com/containers/podman/v2
- Ecosystem
- Go
- Affected
- <= 5.2.3
- Fixed in
- 5.2.4
- Check
go list -m github.com/containers/podman/v2
github.com/containers/podman/v3
- Ecosystem
- Go
- Affected
- <= 5.2.3
- Fixed in
- 5.2.4
- Check
go list -m github.com/containers/podman/v3
github.com/containers/podman/v4
- Ecosystem
- Go
- Affected
- <= 5.2.3
- Fixed in
- 5.2.4
- Check
go list -m github.com/containers/podman/v4
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-9407
- https://access.redhat.com/security/cve/CVE-2024-9407
- https://bugzilla.redhat.com/show_bug.cgi?id=2315887
- https://github.com/containers/podman/releases/tag/v5.2.4
- https://github.com/containers/buildah/commit/e4e2ad5ca2088d7c388109394135ead7aaf1f4f4
- https://pkg.go.dev/vuln/GO-2024-3169
- https://access.redhat.com/errata/RHSA-2024:8846
- https://access.redhat.com/errata/RHSA-2024:9051
- https://access.redhat.com/errata/RHSA-2024:9454
- https://access.redhat.com/errata/RHSA-2024:9459
- https://access.redhat.com/errata/RHSA-2024:9926
- https://access.redhat.com/errata/RHSA-2024:10147
- https://security.netapp.com/advisory/ntap-20241220-0010
- https://github.com/advisories/GHSA-fhqq-8f65-5xfc
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-94603
Podman: The `podman run` command can be instructed to disable almost all sandboxing by image annotation
critical10.0Oct 15, 2026CVE-2026-19730
podman quadlet install --replace does not fully replace the old file
medium4.2Sep 24, 2026CVE-2026-57231
Podman: Malformed Image can trick podman run into leaking host environment variables into the container
high7.5No fixSep 24, 2026CVE-2026-44517
Build breakout using malicious Containerfile and Git Smart HTTP server or GitHub release tar archive
medium6.3Jun 22, 2026CVE-2026-55686
Podman: WORKDIR symlink traversal vulnerability
medium5.3No fixJun 18, 2026CVE-2026-33414
PowerShell Command Injection in Podman HyperV Machine
medium7.8No fixApr 14, 2026
