#VU98140 Input validation error in buildah


Published: 2024-10-08

Vulnerability identifier: #VU98140

Vulnerability risk: Low

CVSSv3.1: 2.4 [CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2024-9407

CWE-ID: CWE-20

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
buildah
Client/Desktop applications / Software for system administration

Vendor: Container Projects

Description

The vulnerability allows a remote user to gain access to sensitive information.

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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

buildah: 1.37.0 - 1.37.3


External links
http://bugzilla.redhat.com/show_bug.cgi?id=2315887
http://github.com/advisories/GHSA-fhqq-8f65-5xfc
http://github.com/containers/buildah/releases/tag/v1.37.4


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability