10.0
CRITICAL
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.

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.

Affected Products

The following products are affected by CVE-2024-23652 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Mobyproject buildkit
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

Updated: 6 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : March 1, 2024, 9:50 a.m. This repo has been linked 1 different CVEs too.

None

Dockerfile C Go

Updated: 7 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : Feb. 11, 2024, 6:21 a.m. This repo has been linked 4 different CVEs too.

Static detection tool for runc and Docker "Leaky Vessels" vulnerabilities

Dockerfile Shell JavaScript Go

Updated: 1 month ago
94 stars 17 fork 17 watcher
Born at : Jan. 31, 2024, 12:24 p.m. This repo has been linked 4 different CVEs too.

Leaky Vessels Dynamic Detector

Dockerfile C Go

Updated: 1 week, 6 days ago
94 stars 10 fork 10 watcher
Born at : Jan. 31, 2024, 9:07 a.m. This repo has been linked 4 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 1 week, 4 days ago
6375 stars 1107 fork 1107 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 904 different CVEs too.

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
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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:

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

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability