CVE-2024-9407
Docker Dockerfile Bind-Propagation Mount Option Arbitrary Code Injection Vulnerability
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.
INFO
Published Date :
Oct. 1, 2024, 9:15 p.m.
Last Modified :
Dec. 20, 2024, 1:15 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
4.2
Exploitability Score :
0.5
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-9407
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-9407
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-9407
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Dec. 20, 2024
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20241220-0010/ -
CVE Modified by [email protected]
Nov. 26, 2024
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2024:10147 -
CVE Modified by [email protected]
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2024:9926 -
CVE Modified by [email protected]
Nov. 12, 2024
Action Type Old Value New Value Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:9454 [No types assigned] Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:9459 [No types assigned] -
CVE Modified by [email protected]
Nov. 11, 2024
Action Type Old Value New Value Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:9051 [No types assigned] -
CVE Modified by [email protected]
Nov. 05, 2024
Action Type Old Value New Value Added Reference Red Hat, Inc. https://access.redhat.com/errata/RHSA-2024:8846 [No types assigned] -
CVE Received by [email protected]
Oct. 01, 2024
Action Type Old Value New Value Added 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. Added Reference Red Hat, Inc. https://access.redhat.com/security/cve/CVE-2024-9407 [No types assigned] Added Reference Red Hat, Inc. https://bugzilla.redhat.com/show_bug.cgi?id=2315887 [No types assigned] Added CWE Red Hat, Inc. CWE-20 Added CVSS V3.1 Red Hat, Inc. AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-9407
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-9407
weaknesses.