cve.bz

CVE-2024-9407 Improper Input Validation

4.7 mediumEPSS 0.3%Fix available

Medium (4.7). EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/containers/buildah 1.37.4.

On this page
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.

Severity

CVSS 3.1

4.7 medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-10-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • github.com/containers/buildah (Go): fixed in 1.37.4
  • github.com/containers/podman/v5 (Go): fixed in 5.2.4
  • github.com/containers/podman (Go): fixed in 5.2.4
  • github.com/containers/podman/v2 (Go): fixed in 5.2.4
  • github.com/containers/podman/v3 (Go): fixed in 5.2.4
  • github.com/containers/podman/v4 (Go): fixed in 5.2.4
  • Red Hat Red Hat Enterprise Linux 8: fixed in 8100020241023085649.afee755d
  • Red Hat Red Hat Enterprise Linux 9: fixed in 4:4.9.4-16.el9_4
  • Red Hat Red Hat Enterprise Linux 9: fixed in 4:5.2.2-9.el9_5
  • Red Hat Red Hat Enterprise Linux 9: fixed in 2:1.37.5-1.el9_5
  • Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support: fixed in 2:1.33.11-1.el9_4
  • Red Hat Red Hat OpenShift Container Platform 4.16: fixed in 416.94.202411201433-0
  • Debian, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-9407 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-9407?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-9407?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-9407 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 88100020241023085649.afee755d
Red Hat Enterprise Linux 94:4.9.4-16.el9_4
Red Hat Enterprise Linux 94:5.2.2-9.el9_5
Red Hat Enterprise Linux 92:1.37.5-1.el9_5
Red Hat Enterprise Linux 9.4 Extended Update Support2:1.33.11-1.el9_4
Red Hat OpenShift Container Platform 4.16416.94.202411201433-0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fhqq-8f65-5xfcGogithub.com/containers/buildah<1.37.41.37.4
GHSA-fhqq-8f65-5xfcGogithub.com/containers/podman/v5<5.2.45.2.4
GHSA-fhqq-8f65-5xfcGogithub.com/containers/podman<5.2.45.2.4
GHSA-fhqq-8f65-5xfcGogithub.com/containers/podman/v2<5.2.45.2.4
GHSA-fhqq-8f65-5xfcGogithub.com/containers/podman/v3<5.2.45.2.4
GHSA-fhqq-8f65-5xfcGogithub.com/containers/podman/v4<5.2.45.2.4
GO-2024-3169Gogithub.com/containers/buildah<1.37.41.37.4
GO-2024-3169Gogithub.com/containers/podmanall versionsno fix published
GO-2024-3169Gogithub.com/containers/podman/v2all versionsno fix published
GO-2024-3169Gogithub.com/containers/podman/v3all versionsno fix published
GO-2024-3169Gogithub.com/containers/podman/v4all versionsno fix published
GO-2024-3169Gogithub.com/containers/podman/v5<5.2.45.2.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-github-containers-buildahno fix listedDEBIAN-CVE-2024-9407
Debian13, 14golang-github-containers-buildah1.37.4+ds1-1DEBIAN-CVE-2024-9407
Ubuntu22.04:LTS, Pro:24.04:LTSgolang-github-containers-buildahno fix listedUBUNTU-CVE-2024-9407
Red Hatenterprise_linux:8::appstreamaardvark-dns2:1.10.1-2.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more2:1.33.10-1.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreamcockpit-podman0:84.1-1.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.10-1.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.229.0-2.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.4.0-5.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreamcontainers-common2:1-82.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreamcrit, criu, criu-libs and 5 more0:3.18-5.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreamcrun, crun-debuginfo, crun-debugsource0:1.14.3-2.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreamfuse-overlayfs, fuse-overlayfs-debuginfo, fuse-overlayfs-debugsource0:1.13-1.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreamlibslirp, libslirp-devel, libslirp-debuginfo and 1 more0:4.4.0-2.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
Red Hatenterprise_linux:8::appstreamnetavark2:1.10.3-1.module+el8.10.0+22397+e3c95ba6RHSA-2024:8846
12 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morepodman4.9.5-150300.9.43.1SUSE-SU-2025:0775-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morebuildah1.35.4-150300.8.28.3SUSE-SU-2024:4303-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morebuildah1.35.5-150300.8.31.2SUSE-SU-2025:0320-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 3 morepodman4.9.5-150400.4.35.1SUSE-SU-2025:0267-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morebuildah1.35.4-150400.3.33.1SUSE-SU-2024:3988-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morebuildah1.35.5-150400.3.36.1SUSE-SU-2025:0319-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Containers 15 SP5, Linux Enterprise Module for Containers 15 SP6podman4.9.5-150500.3.25.1SUSE-SU-2024:3741-1
SUSELinux Enterprise Module for Containers 15 SP5, Linux Enterprise Module for Containers 15 SP6buildah1.35.4-150500.3.13.1SUSE-SU-2024:3545-1
SUSELinux Enterprise Module for Package Hub 15 SP5, Linux Enterprise Module for Package Hub 15 SP6govulncheck-vulndb0.0.20241030T212825-150000.1.9.1SUSE-SU-2024:3911-1
SUSELinux Micro 6.0podman4.9.5-2.1SUSE-SU-2025:20080-1
SUSELinux Micro 6.0podman4.9.5-3.1SUSE-SU-2025:20143-1
SUSELinux Micro 6.1podman5.2.5-slfo.1.1_1.1SUSE-SU-2025:20279-1
1 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5, Leap 15.6buildah1.35.4-150500.3.13.1SUSE-SU-2024:3545-1
openSUSELeap 15.5, Leap 15.6govulncheck-vulndb0.0.20241030T212825-150000.1.9.1SUSE-SU-2024:3911-1
openSUSELeap 15.5, Leap 15.6, Leap Micro 5.5podman4.9.5-150500.3.25.1SUSE-SU-2024:3741-1
openSUSETumbleweedbuildah1.37.4-1.1openSUSE-SU-2024:14388-1
openSUSETumbleweedgovulncheck-vulndb0.0.20241030T212825-1.1openSUSE-SU-2024:14447-1
openSUSETumbleweedpodman5.2.4-1.1openSUSE-SU-2024:14390-1
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux8buildah, buildah-tests2:1.33.10-1.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux8cockpit-podman84.1-1.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3845+87b84552ALSA-2024:8846
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux8container-selinux2:2.229.0-2.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
AlmaLinux8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3876+e55593a8ALSA-2024:8846
AlmaLinux8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3901+4b80ecd7ALSA-2024:8846
AlmaLinux8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3909+6e1c1eb7ALSA-2024:8846
42 more for AlmaLinux in the JSON.
Rocky Linux9podman4:4.9.4-16.el9_4RLSA-2024:9051
Alpinev3.20, v3.21, v3.22 and 2 morebuildah1.37.4-r0ALPINE-CVE-2024-9407
Alpinev3.20, v3.21, v3.22 and 2 morepodman5.2.4-r0ALPINE-CVE-2024-9407
Azure Linux2podmanno fix listedAZL-50268
Azure Linux3buildahno fix listedAZL-108011
Azure Linux3podman5.6.1-2AZL-50262
Alpaquita23buildah1.37.5-r0BELL-CVE-2024-9407
Alpaquita23podman5.2.5-r0BELL-CVE-2024-9407
Alpaquitastreambuildah1.37.4-r0BELL-CVE-2024-9407
Alpaquitastreamcontainers-common0.60.4-r0BELL-CVE-2024-9407
Alpaquitastreampodman5.2.4-r0BELL-CVE-2024-9407

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is classified as moderate rather than important because it requires the attacker to have build privileges on the system, which inherently limits the scope of exploitation to trusted or semi-trusted users who already have some level of access. Additionally, while the flaw allows mounting and potential modification of host files, it is confined to the build process, meaning the exploitation window is limited to when a container is being built, not during runtime.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8container-tools:rhel8-8100020241023085649.afee755dFixed 2024-11-05RHSA-2024:8846
Red Hat Enterprise Linux 9podman-4:4.9.4-16.el9_4Fixed 2024-11-11RHSA-2024:9051
Red Hat Enterprise Linux 9podman-4:5.2.2-9.el9_5Fixed 2024-11-12RHSA-2024:9454
Red Hat Enterprise Linux 9buildah-2:1.37.5-1.el9_5Fixed 2024-11-12RHSA-2024:9459
Red Hat Enterprise Linux 9.4 Extended Update Supportbuildah-2:1.33.11-1.el9_4Fixed 2024-11-19RHSA-2024:9926
Red Hat OpenShift Container Platform 4.16openshift/ose-rhel-coreos-9:416.94.202411201433-0Fixed 2024-11-26RHSA-2024:10147
Red Hat Enterprise Linux 10buildahAffected
Red Hat Enterprise Linux 10podmanAffected
Red Hat OpenShift Container Platform 4buildahNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-docker-builderFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-9407.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON