CVE-2024-9407 Buildah: podman: improper input validation in bind-propagation option of dockerfile run --mount instruction
MediumCVSS 4.7
EPSS 0.29%
- Published
- Updated
- Exploit status
- No public exploit known
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 products
| Product | Affected versions | Fixed in |
|---|---|---|
| containers github.com/containers/buildah(Go) | < 1.37.4 | 1.37.4 |
| containers github.com/containers/podman/v4(Go) | < 5.2.4 | 5.2.4 |
| containers github.com/containers/podman/v4(Go) | All versions | No fix listed |
| containers github.com/containers/buildah(Go) | <= 1.37.3 | No fix listed |
| containers github.com/containers/podman/v4(Go) | <= 5.2.3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | All versions | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.28.2+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.28.2+ds1-3+deb12u1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.29.0+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.30.0+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.30.0+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.30.0+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.31.2+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.31.2+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.31.2+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.32.0+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.32.0+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.32.2+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.33.1+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.33.1+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.33.3+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.33.3+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.33.5+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.33.5+ds1-4 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.33.7+ds1-1 | No fix listed |
Show 65 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/golang-github-containers-buildah(Debian:12) | = 1.34.0+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.34.0+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.35.3+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.35.3+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.35.3+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.0+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.1+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.1+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.2+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.2+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.2+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.3+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.3+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.3+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.4+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.37.5+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.38.0+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.38.0+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.38.1+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.39.0+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.39.3+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.41.4+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.41.4+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.41.4+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.41.5+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.41.5+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.41.5+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.41.5+ds1-4 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.42.1+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.42.1+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.43.0+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.43.0+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.43.1+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.43.1+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.43.1+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.43.2+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.43.2+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.43.2+ds1-3 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.45.0+ds1-1 | No fix listed |
| debian/golang-github-containers-buildah(Debian:12) | = 1.45.0+ds1-2 | No fix listed |
| debian/golang-github-containers-buildah(Debian:13) | < 1.37.4+ds1-1 | 1.37.4+ds1-1 |
| debian/golang-github-containers-buildah(Debian:14) | < 1.37.4+ds1-1 | 1.37.4+ds1-1 |
| ubuntu/golang-github-containers-buildah(Ubuntu:22.04) | All versions | No fix listed |
| podman | < 5.2.4 | 5.2.4 |
| buildah | < 1.37.4 | 1.37.4 |
| redhat enterprise linux | < 8100020241023085649.afee755d | 8100020241023085649.afee755d |
| redhat enterprise linux | < 4:4.9.4-16.el9_4 | 4:4.9.4-16.el9_4 |
| redhat enterprise linux | < 4:5.2.2-9.el9_5 | 4:5.2.2-9.el9_5 |
| redhat enterprise linux | < 2:1.37.5-1.el9_5 | 2:1.37.5-1.el9_5 |
| redhat rhel eus | < 2:1.33.11-1.el9_4 | 2:1.33.11-1.el9_4 |
| redhat openshift | < 416.94.202411201433-0 | 416.94.202411201433-0 |
| redhat enterprise linux | All versions | No fix listed |
| redhat openshift | = 4 | No fix listed |
| redhat openshift | All versions | No fix listed |
| alpine/buildah(Alpine:v3.20) | < 1.37.4-r0 | 1.37.4-r0 |
| alpine/buildah(Alpine:v3.21) | < 1.37.4-r0 | 1.37.4-r0 |
| alpine/buildah(Alpine:v3.22) | < 1.37.4-r0 | 1.37.4-r0 |
| alpine/buildah(Alpine:v3.23) | < 1.37.4-r0 | 1.37.4-r0 |
| alpine/buildah(Alpine:v3.24) | < 1.37.4-r0 | 1.37.4-r0 |
| alpine/podman(Alpine:v3.20) | < 5.2.4-r0 | 5.2.4-r0 |
| alpine/podman(Alpine:v3.21) | < 5.2.4-r0 | 5.2.4-r0 |
| alpine/podman(Alpine:v3.22) | < 5.2.4-r0 | 5.2.4-r0 |
| alpine/podman(Alpine:v3.23) | < 5.2.4-r0 | 5.2.4-r0 |
| alpine/podman(Alpine:v3.24) | < 5.2.4-r0 | 5.2.4-r0 |
| ubuntu/golang-github-containers-buildah(Ubuntu:24.04) | All versions | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- RHSA-2024:10147 vendor-advisory
- RHSA-2024:8846 vendor-advisory
- RHSA-2024:9051 vendor-advisory
- RHSA-2024:9454 vendor-advisory
- RHSA-2024:9459 vendor-advisory
- RHSA-2024:9926 vendor-advisory
- access.redhat.com vdb-entry
- RHBZ#2315887 issue-tracking
- github.com
- pkg.go.dev
- security.netapp.com
- github.com vendor-advisory
- Debian Security Tracker CVE-2024-9407 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking