CVE-2024-9407

Medium

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.

SeverityMedium
CVSS4.7
Exploit probability—
ProductGithub.com/containers/buildah
PublishedOct 1, 2024
First seenOct 1, 2024

How to fix

Update
  • github.com/containers/buildah1.37.4 or later
  • github.com/containers/podman/v55.2.4 or later
  • github.com/containers/podman5.2.4 or later
  • github.com/containers/podman/v25.2.4 or later
  • github.com/containers/podman/v35.2.4 or later
  • github.com/containers/podman/v45.2.4 or later

Affected products

ProductAffected versionsFixed in
github.com/containers/buildahGov < 1.37.41.37.4
github.com/containers/podman/v5Gov < 5.2.45.2.4
github.com/containers/podmanGov < 5.2.4, No range specified5.2.4
github.com/containers/podman/v2Gov < 5.2.4, No range specified5.2.4
github.com/containers/podman/v3Gov < 5.2.4, No range specified5.2.4
github.com/containers/podman/v4Gov < 5.2.4, No range specified5.2.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.