CVE-2024-23652
Moby BuildKit Root Filesystem Access Vulnerability
Description
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature.
INFO
Published Date :
Jan. 31, 2024, 10:15 p.m.
Last Modified :
Feb. 9, 2024, 1:44 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.8
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2024-23652 has a 5 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
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-23652
.
URL | Resource |
---|---|
https://github.com/moby/buildkit/pull/4603 | Patch Vendor Advisory |
https://github.com/moby/buildkit/releases/tag/v0.12.5 | Patch Release Notes |
https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8 | Vendor Advisory |
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).
None
Dockerfile
None
Dockerfile C Go
Static detection tool for runc and Docker "Leaky Vessels" vulnerabilities
Dockerfile Shell JavaScript Go
Leaky Vessels Dynamic Detector
Dockerfile C Go
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
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-23652
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-23652
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 [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Feb. 09, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H Changed Reference Type https://github.com/moby/buildkit/pull/4603 No Types Assigned https://github.com/moby/buildkit/pull/4603 Patch, Vendor Advisory Changed Reference Type https://github.com/moby/buildkit/releases/tag/v0.12.5 No Types Assigned https://github.com/moby/buildkit/releases/tag/v0.12.5 Patch, Release Notes Changed Reference Type https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8 No Types Assigned https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8 Vendor Advisory Added CPE Configuration OR *cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:* versions up to (excluding) 0.12.5 -
CVE Received by [email protected]
Jan. 31, 2024
Action Type Old Value New Value Added Description BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature. Added Reference GitHub, Inc. https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8 [No types assigned] Added Reference GitHub, Inc. https://github.com/moby/buildkit/pull/4603 [No types assigned] Added Reference GitHub, Inc. https://github.com/moby/buildkit/releases/tag/v0.12.5 [No types assigned] Added CWE GitHub, Inc. CWE-22 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H
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-23652
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-23652
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.05 }} 0.01%
score
0.18858
percentile