CVE-2024-23651: BuildKit possible race condition with accessing subpaths from cache mounts
Vulnerability summary
CVE-2024-23651 is a high (CVSS 8.7) vulnerability in moby buildkit. EPSS estimates a 0.91% chance of exploitation in the next 30 days, higher than 60% of scored vulnerabilities.
Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 14 · Related 28Timeline
- 31-01-2024PublishedVulnerability first disclosed.
- 29-05-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated8.7HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- OSV · GoEcosystem advisory · calculated8.7HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated8.7HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
- NVDNIST7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NDiffers
EPSS trend
Probability
0.91%
Chance of exploitation in the next 30 days
Percentile
60%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.91% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard21 products
- buildkitd< 0.12.5-r0
- conftest< 0.49.0-r1
- conftest-fips< 0.48.0-r2
- docker< 25.0.2-r0
- docker-config-mirror-gcr< 25.0.2-r0
Wolfi20 products
- buildkitd< 0.12.5-r0
- conftest< 0.49.0-r1
- docker< 25.0.2-r0
- docker-config-mirror-gcr< 25.0.2-r0
- docker-dind< 25.0.2-r0
Alpine4 products
- buildkit< 0.12.5-r0
- docker< 25.0.2-r0
- podman< 4.9.2-r0
- singularity< 4.1.1-r0
Ubuntu2 products
- docker.io< 20.10.21-0ubuntu1~18.04.3+esm3 | < 20.10.21-0ubuntu1~20.04.6+esm2 | < 20.10.21-0ubuntu1~22.04.7+esm2 | < 20.10.25+dfsg1-2ubuntu1+esm2
- docker.io-app< 26.1.3-0ubuntu1~20.04.1+esm1 | < 27.5.1-0ubuntu3~22.04.2 | < 27.5.1-0ubuntu3~24.04.2
Github.com/moby1 product
- buildkit< 0.12.5
Moby1 product
- buildkit< 0.12.5
Mobyproject1 product
- buildkit< 0.12.5
7 vendors · 50 products
References
11 links- github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxvX Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
- github.com/moby/buildkitPACKAGE