Description

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container. The issue has been fixed in v0.12.5. Workarounds include, avoiding using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with --mount=type=cache,source=... options.

INFO

Published Date :

Jan. 31, 2024, 10:15 p.m.

Last Modified :

Feb. 9, 2024, 1:43 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.8

Exploitability Score :

2.2
Public PoC/Exploit Available at Github

CVE-2024-23651 has a 3 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-23651 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-23651.

URL Resource
https://github.com/moby/buildkit/pull/4604 Patch Vendor Advisory
https://github.com/moby/buildkit/releases/tag/v0.12.5 Patch Release Notes
https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv 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 C Go

Updated: 9 months 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: 3 months 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: 2 months, 1 week 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.

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-23651 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-23651 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:H/PR:N/UI:N/S:U/C:H/I:H/A:N
    Changed Reference Type https://github.com/moby/buildkit/pull/4604 No Types Assigned https://github.com/moby/buildkit/pull/4604 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-m3r6-h7wv-7xxv No Types Assigned https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv 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. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container. The issue has been fixed in v0.12.5. Workarounds include, avoiding using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with --mount=type=cache,source=... options.
    Added Reference GitHub, Inc. https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv [No types assigned]
    Added Reference GitHub, Inc. https://github.com/moby/buildkit/pull/4604 [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-362
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
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-23651 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-23651 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.07 }} 0.02%

score

0.27083

percentile

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