{"id":"CVE-2024-9407","published":"2024-10-01T20:13:29Z","modified":"2026-11-05T14:45:14Z","title":"Buildah: podman: improper input validation in bind-propagation option of dockerfile run --mount instruction","vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00288,"percentile":0.21832,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:10147","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:8846","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:9051","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:9454","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:9459","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:9926","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-9407","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2315887","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://github.com/advisories/GHSA-fhqq-8f65-5xfc","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241220-0010/","tags":[]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":4.37},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":null,"product":null,"versions":["< 5.2.4"]},{"vendor":null,"product":null,"versions":["< 1.37.4"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.4 Extended Update Support","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.16","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","versions":["all versions"]}],"workarounds":{"items":["Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-10-01T20:38:18.374514Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/containers/buildah","vulnerableRanges":["<1.37.4"],"patched":["1.37.4"],"from":["GHSA-fhqq-8f65-5xfc","GO-2024-3169"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/containers/podman/v5","vulnerableRanges":["<5.2.4"],"patched":["5.2.4"],"from":["GHSA-fhqq-8f65-5xfc","GO-2024-3169"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/containers/podman","vulnerableRanges":["<5.2.4","all versions"],"patched":["5.2.4"],"from":["GHSA-fhqq-8f65-5xfc","GO-2024-3169"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/containers/podman/v2","vulnerableRanges":["<5.2.4","all versions"],"patched":["5.2.4"],"from":["GHSA-fhqq-8f65-5xfc","GO-2024-3169"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/containers/podman/v3","vulnerableRanges":["<5.2.4","all versions"],"patched":["5.2.4"],"from":["GHSA-fhqq-8f65-5xfc","GO-2024-3169"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/containers/podman/v4","vulnerableRanges":["<5.2.4","all versions"],"patched":["5.2.4"],"from":["GHSA-fhqq-8f65-5xfc","GO-2024-3169"],"provenance":"source"}],"summary":{"text":"A flaw in the bind-propagation option of the Dockerfile RUN --mount instruction in Buildah, as shipped in Red Hat Enterprise Linux 8, fails to properly validate input passed to that option. An attacker with local access and high privileges (with some additional precondition required to succeed) can pass arbitrary parameters to the mount instruction during a build, mounting sensitive host directories into a container and, in some cases, modifying their contents, including bypassing SELinux protection by relabeling the source directory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:34Z"},"euvd":{"id":"EUVD-2024-3036","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-enterprise-linux-8-cve-2024-1753","parents":[{"from":"CVE-2024-1753","to":"CVE-2024-9407","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containers/podman/v5","fromFixed":"5.0.1","toFixed":"5.2.4","daysApart":197},{"kind":"same-code","provenance":"machine","files":["internal/volumes/volumes.go"],"commits":["https://github.com/containers/buildah/commit/3deda19137f5dec0285bbb832bd93c22d860b087","https://github.com/containers/buildah/commit/9de9c20ff368beb84b84fe660773d352519dc1c5","https://github.com/containers/buildah/commit/e4e2ad5ca2088d7c388109394135ead7aaf1f4f4"],"basis":"shared function","functions":["GetBindMount"]}]}],"children":[{"from":"CVE-2024-9407","to":"CVE-2024-9675","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/volumes/volumes.go"],"commits":["https://github.com/containers/buildah/commit/e4e2ad5ca2088d7c388109394135ead7aaf1f4f4","https://github.com/containers/buildah/commit/aa67e5d71ee7ec07122a210baa3b13966a9e086c"],"basis":"shared function","functions":["GetCacheMount"]}]}],"packageHistory":[{"cve":"CVE-2022-27651","published":"2022-04-04","fixed":"1.25.0","kev":false},{"cve":"CVE-2022-2990","published":"2022-09-13","fixed":"1.27.1","kev":false},{"cve":"CVE-2024-1753","published":"2024-03-18","fixed":"1.35.1","kev":false},{"cve":"CVE-2024-9407","published":"2024-10-01","fixed":"1.37.4","kev":false},{"cve":"CVE-2024-9675","published":"2024-10-09","fixed":"1.38.0","kev":false},{"cve":"CVE-2024-11218","published":"2025-01-22","fixed":"1.38.1","kev":false,"link":{"from":"CVE-2024-9407","to":"CVE-2024-11218","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containers/buildah","fromFixed":"1.37.4","toFixed":"1.37.6","daysApart":113}]}},{"cve":"CVE-2026-44517","published":"2026-08-21","fixed":"1.43.2","kev":false}],"package":"Go:github.com/containers/buildah"}}