CVE-2024-23652: BuildKit possible host system access from mount stub cleaner
Vulnerability summary
CVE-2024-23652 is a critical (CVSS 10.0) vulnerability in moby buildkit. EPSS estimates a 2.46% chance of exploitation in the next 30 days, higher than 84.4% of scored vulnerabilities.
Severe, CVSS 10 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 14 · Related 28Timeline
- 31-01-2024PublishedVulnerability first disclosed.
- 17-06-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
- OSV · WolfiEcosystem advisory · calculated10.0CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H
- OSV · GoEcosystem advisory · calculated10.0CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated10.0CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H
- NVDNIST9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
EPSS trend
Probability
2.46%
Chance of exploitation in the next 30 days
Percentile
84%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.46% 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.ioAll versions (No fix recorded) | < 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
10 links- github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8X Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
- github.com/moby/buildkitPACKAGE