CVE-2024-9407

Buildah: podman: improper input validation in bind-propagation option of dockerfile run --mount instruction

State
Published
Severity
4.7 Medium
Published
Oct 1, 2024
Updated
Oct 22, 2026
Reserved
Oct 1, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.7 MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:Nredhat

Weaknesses

  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
podman
  • before 5.2.4Affected
buildah
  • before 1.37.4Affected
Red Hat Enterprise Linux 8Red Hat
  • 8100020241023085649.afee755d and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 4:4.9.4-16.el9_4 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 4:5.2.2-9.el9_5 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 2:1.37.5-1.el9_5 and laterNot affected
Red Hat Enterprise Linux 9.4 Extended Update SupportRed Hat
  • 2:1.33.11-1.el9_4 and laterNot affected
Red Hat OpenShift Container Platform 4.16Red Hat
  • 416.94.202411201433-0 and laterNot affected
Red Hat Enterprise Linux 10Red Hat
    Red Hat Enterprise Linux 10Red Hat
      Red Hat OpenShift Container Platform 4Red Hat
        Red Hat OpenShift Container Platform 4Red Hat

          References

          Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.