Skip to main content
← All vulnerabilities
CVE-2024-9407GHSA-FHQQ-8F65-5XFCGO-2024-3169

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.2.4, 1.37.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • podman

    fixed in 5.2.4

  • buildah

    fixed in 1.37.4

  • container-tools:rhel8

    Version range not reported

  • podman

    Version range not reported

  • buildah

    Version range not reported

  • buildah

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

  • buildah

    Version range not reported

  • podman

    Version range not reported

  • buildah

    Version range not reported

  • openshift4/ose-docker-builder

    Version range not reported

  • github.com/containers/buildahGo

    fixed in 1.37.4

  • github.com/containers/podman/v5Go

    fixed in 5.2.4

  • github.com/containers/podmanGo

    fixed in 5.2.4

  • github.com/containers/podman/v2Go

    fixed in 5.2.4

  • github.com/containers/podman/v3Go

    fixed in 5.2.4

  • github.com/containers/podman/v4Go

    fixed in 5.2.4

  • github.com/containers/podmanGo

    All versions

  • github.com/containers/podman/v2Go

    All versions

  • github.com/containers/podman/v3Go

    All versions

  • github.com/containers/podman/v4Go

    All versions

References 9

access.redhat.com

bugzilla.redhat.com

GitHub Advisory Database