CVE-2024-23651 in Mobyproject Buildkit
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 conta...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Mobyproject | Buildkit | < 0.12.5 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-23651 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-052453-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| Published | 2024-01-31 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-362: Race Condition
Software behavior depends on event timing that is not enforced, allowing attackers to exploit the timing window.
Related attack patterns (CAPEC)
CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-362
CAPEC-26 Leveraging Race Conditions via CWE-362
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-23651 affects BuildKit, a toolkit for converting source code to build artifacts, by allowing files from the host system to be accessible to the build container due to a race condition in parallel build steps sharing cache mounts with subpaths.
The vulnerability arises when two malicious build steps run in parallel and share the same cache mounts with subpaths, leading to a race condition that can expose host system files to the build container.
Questions
What is CVE-2024-23651?
CVE-2024-23651 affects BuildKit, a toolkit for converting source code to build artifacts, by allowing files from the host system to be accessible to the build container due to a race condition in parallel build steps sharing cache mounts with subpaths.
What is the CVSS score for CVE-2024-23651?
CVE-2024-23651 has CVSS 7.4 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 0.7%.
Is CVE-2024-23651 actively exploited?
No confirmed active exploitation of CVE-2024-23651 as of 2026-09-25.
How do I remediate CVE-2024-23651?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2024-23651?
CVE-2024-23651 affects Mobyproject Buildkit.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Mobyproject","product":"Buildkit","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.