GHSA-fhqq-8f65-5xfc
Improper Input Validation in Buildah and Podman
Quick fix
GHSA-fhqq-8f65-5xfc — github.com/containers/buildah: upgrade to the fixed version with the command below.
go get github.com/containers/buildah@v1.37.4Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 1.37.4go get github.com/containers/buildah@v1.37.40Fixed in: 5.2.4go get github.com/containers/podman/v5@v5.2.40Fixed in: 5.2.4go get github.com/containers/podman@v5.2.40Fixed in: 5.2.4go get github.com/containers/podman/v2@v5.2.40Fixed in: 5.2.4go get github.com/containers/podman/v3@v5.2.40Fixed in: 5.2.4go get github.com/containers/podman/v4@v5.2.4References
- https://nvd.nist.gov/vuln/detail/CVE-2024-9407[ADVISORY]
- https://github.com/containers/buildah/commit/e4e2ad5ca2088d7c388109394135ead7aaf1f4f4[WEB]
- https://access.redhat.com/errata/RHSA-2024:10147[WEB]
- https://access.redhat.com/errata/RHSA-2024:8846[WEB]
- https://access.redhat.com/errata/RHSA-2024:9051[WEB]
- https://access.redhat.com/errata/RHSA-2024:9454[WEB]
- https://access.redhat.com/errata/RHSA-2024:9459[WEB]
- https://access.redhat.com/errata/RHSA-2024:9926[WEB]
- https://access.redhat.com/security/cve/CVE-2024-9407[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2315887[WEB]
- https://github.com/containers/podman/releases/tag/v5.2.4[WEB]
- https://pkg.go.dev/vuln/GO-2024-3169[WEB]
- https://security.netapp.com/advisory/ntap-20241220-0010[WEB]