CVE-2024-23651
Detail
Modified After Enrichment
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
CVSS 2.0 Severity and Vector Strings:
Base
Score:
NVD assessment
not yet provided.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
Weakness Enumeration
| CWE-ID |
CWE Name |
Source |
|
CWE-362
|
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') |
GitHub, Inc.
|
Change History
6 change records found show changes
CVE Modified by CISA-ADP
6/17/2026 3:13:18 AM
| Action |
Type |
Old Value |
New Value |
| Added |
SSVC |
{"timestamp":"2025-05-08T15:46:26.378151Z","id":"CVE-2024-23651","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}
|
CVE Modified by GitHub, Inc.
6/17/2026 3:13:18 AM
| Action |
Type |
Old Value |
New Value |
| Added |
Affected |
[{"vendor":"moby","product":"buildkit","versions":[{"version":"< 0.12.5","status":"affected"}]}]
|
CVE Modified by CVE
11/21/2024 3:58:05 AM
| Action |
Type |
Old Value |
New Value |
| Added |
Reference |
https://github.com/moby/buildkit/pull/4604
|
| Added |
Reference |
https://github.com/moby/buildkit/releases/tag/v0.12.5
|
| Added |
Reference |
https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv
|
CVE Modified by GitHub, Inc.
5/14/2024 11:00:09 AM
| Action |
Type |
Old Value |
New Value |
Initial Analysis by NIST
2/08/2024 8:43:51 PM
| 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
|
| Added |
CPE Configuration |
OR
*cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:* versions up to (excluding) 0.12.5
|
| 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
|
New CVE Received from GitHub, Inc.
1/31/2024 5:15:54 PM
| 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 |
CVSS V3.1 |
GitHub, Inc. AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
|
| Added |
CWE |
GitHub, Inc. CWE-362
|
| 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 |
Reference |
GitHub, Inc. https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv [No types assigned]
|
Quick Info
CVE Dictionary Entry: CVE-2024-23651 NVD
Published Date: 01/31/2024 NVD
Last Modified: 06/17/2026
Source: GitHub, Inc.
|