VDB
Sign up
MEDIUM4.7

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

Details

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

Go/github.com/containers/buildah
Introduced in: 0Fixed in: 1.37.4
Fixgo get github.com/containers/buildah@v1.37.4
Go/github.com/containers/podman/v5
Introduced in: 0Fixed in: 5.2.4
Fixgo get github.com/containers/podman/v5@v5.2.4
Go/github.com/containers/podman
Introduced in: 0Fixed in: 5.2.4
Fixgo get github.com/containers/podman@v5.2.4
Go/github.com/containers/podman/v2
Introduced in: 0Fixed in: 5.2.4
Fixgo get github.com/containers/podman/v2@v5.2.4
Go/github.com/containers/podman/v3
Introduced in: 0Fixed in: 5.2.4
Fixgo get github.com/containers/podman/v3@v5.2.4
Go/github.com/containers/podman/v4
Introduced in: 0Fixed in: 5.2.4
Fixgo get github.com/containers/podman/v4@v5.2.4

References