CVE-2024-9407

Summary

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 Software

VendorProductVersion RangeStatus
0 < 5.2.4affected
0 < 1.37.4affected
Red HatRed Hat Enterprise Linux 88100020241023085649.afee755d < *unaffected
Red HatRed Hat Enterprise Linux 94:4.9.4-16.el9_4 < *unaffected
Red HatRed Hat Enterprise Linux 94:5.2.2-9.el9_5 < *unaffected
Red HatRed Hat Enterprise Linux 92:1.37.5-1.el9_5 < *unaffected
Red HatRed Hat Enterprise Linux 9.4 Extended Update Support2:1.33.11-1.el9_4 < *unaffected
Red HatRed Hat OpenShift Container Platform 4.16416.94.202411201433-0 < *unaffected

Weaknesses

  • CWE-20: Improper Input Validation

Workarounds

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.

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: total

CVE Program Container

Additional References

References