Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/containers/buildah
  4. ›
  5. CVE-2024-9407

CVE-2024-9407: Improper Input Validation in Buildah and Podman

October 1, 2024 (updated December 20, 2024)

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.

References

  • access.redhat.com/errata/RHSA-2024:10147
  • access.redhat.com/errata/RHSA-2024:8846
  • access.redhat.com/errata/RHSA-2024:9051
  • access.redhat.com/errata/RHSA-2024:9454
  • access.redhat.com/errata/RHSA-2024:9459
  • access.redhat.com/errata/RHSA-2024:9926
  • access.redhat.com/security/cve/CVE-2024-9407
  • bugzilla.redhat.com/show_bug.cgi?id=2315887
  • github.com/advisories/GHSA-fhqq-8f65-5xfc
  • github.com/containers/buildah/commit/e4e2ad5ca2088d7c388109394135ead7aaf1f4f4
  • github.com/containers/podman/releases/tag/v5.2.4
  • nvd.nist.gov/vuln/detail/CVE-2024-9407
  • pkg.go.dev/vuln/GO-2024-3169
  • security.netapp.com/advisory/ntap-20241220-0010

Code Behaviors & Features

Detect and mitigate CVE-2024-9407 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.37.4

Fixed versions

  • 1.37.4

Solution

Upgrade to version 1.37.4 or above.

Impact 4.7 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

go/github.com/containers/buildah/CVE-2024-9407.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:14 +0000.