{"answers":{"affected":"18 open source packages ship an affected version, including github.com/containers/buildah, github.com/containers/podman and github.com/containers/podman/v2.","exploited":"There is no known exploitation of CVE-2024-9407 in the wild and no public exploit code.","fix":"Upgrade github.com/containers/buildah to 1.37.4 or later.","what":"CVE-2024-9407 is a medium-severity path traversal vulnerability in Red Hat Enterprise Linux 10, published on 1 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-9407 and fix it if it is affected.\n\nWhat it is: CVE-2024-9407 is a medium-severity path traversal vulnerability in Red Hat Enterprise Linux 10, published on 1 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-9407 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/containers/buildah (Go): affected all versions; fixed in 1.37.4\n- github.com/containers/buildah (Go): affected all versions; fixed in 1.37.4\n- github.com/containers/buildah (Go): affected all versions; fixed in 1.37.4\n- github.com/containers/podman (Go): affected all versions; no fix listed\n- github.com/containers/podman (Go): affected all versions; fixed in 5.2.4\n- github.com/containers/podman (Go): affected all versions; fixed in 5.2.4\n- github.com/containers/podman/v2 (Go): affected all versions; no fix listed\n- github.com/containers/podman/v2 (Go): affected all versions; fixed in 5.2.4\n- github.com/containers/podman/v2 (Go): affected all versions; fixed in 5.2.4\n- github.com/containers/podman/v3 (Go): affected all versions; no fix listed\n- github.com/containers/podman/v3 (Go): affected all versions; fixed in 5.2.4\n- github.com/containers/podman/v3 (Go): affected all versions; fixed in 5.2.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-9407/ (Markdown: https://insights.sbomify.com/CVE-2024-9407/index.md)","id":"CVE-2024-9407","markdown":"https://insights.sbomify.com/CVE-2024-9407/index.md","name":"CVE-2024-9407","record":{"aliases":["AZL-108011","AZL-50262","AZL-50268","BELL-CVE-2024-9407","CLEANSTART-2024-AV70619","CLSA-2025-1756932191","DEBIAN-CVE-2024-9407","GHSA-fhqq-8f65-5xfc","GO-2024-3169","UBUNTU-CVE-2024-9407"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Buildah container tool","requires_auth":"high_privilege","summary":"Attackers can mount sensitive host directories into containers during build, bypassing SELinux to read or modify host files.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":4.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Buildah: podman: improper input validation in bind-propagation option of dockerfile run --mount instruction","id":"CVE-2024-9407","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":18,"n_references":9,"next":{"headline":"Eclipse GlassFish is vulnerable to Server Side Request Forgery attacks through specific endpoints","id":"CVE-2024-9408"},"packages":[{"ecosystem":"Go","fixed":["1.37.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/buildah","purl":null,"source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":["1.37.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/buildah","purl":"pkg:golang/github.com/containers/buildah","source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":["1.37.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/buildah","purl":"pkg:golang/github.com/containers/buildah","source":"GO-2024-3169"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman","purl":"pkg:golang/github.com/containers/podman","source":"GO-2024-3169"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman","purl":null,"source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman","purl":"pkg:golang/github.com/containers/podman","source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v2","purl":"pkg:golang/github.com/containers/podman/v2","source":"GO-2024-3169"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v2","purl":null,"source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v2","purl":"pkg:golang/github.com/containers/podman/v2","source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v3","purl":"pkg:golang/github.com/containers/podman/v3","source":"GO-2024-3169"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v3","purl":null,"source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v3","purl":"pkg:golang/github.com/containers/podman/v3","source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v4","purl":"pkg:golang/github.com/containers/podman/v4","source":"GO-2024-3169"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v4","purl":null,"source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v4","purl":"pkg:golang/github.com/containers/podman/v4","source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v5","purl":null,"source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v5","purl":"pkg:golang/github.com/containers/podman/v5","source":"GHSA-fhqq-8f65-5xfc"},{"ecosystem":"Go","fixed":["5.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containers/podman/v5","purl":"pkg:golang/github.com/containers/podman/v5","source":"GO-2024-3169"}],"prev":{"headline":"Path traversal in Pluck CMS","id":"CVE-2024-9405"},"products":["Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 9.4 Extended Update Support","Red Hat OpenShift Container Platform 4","Red Hat OpenShift Container Platform 4.16"],"published":"2024-10-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-22","vendors":["Red Hat"]},"summary":"Attackers can mount sensitive host directories into containers during build, bypassing SELinux to read or modify host files.","url":"https://insights.sbomify.com/CVE-2024-9407/"}