Vulnerability in Moby Buildkit
CVE-2024-23651
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.
Vulnerability class: Race Condition
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.7 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N.
EPSS exploit prediction
EPSS: 0.009 (60.1th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 60th percentile — 60.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.009 · newest: 0.009 · change: 0.000
Affected products
- Moby Buildkit — versions < 0.12.5
- Mobyproject Buildkit
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv (Vendor Advisory)
- github.com/moby/buildkit/pull/4604 (Patch, Vendor Advisory)
- github.com/moby/buildkit/releases/tag/v0.12.5 (Patch, Release Notes)
Frequently asked questions
- What is CVE-2024-23651?
- CVE-2024-23651 is a high-severity vulnerability in Moby Buildkit, classified under Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition). CVSS score: 8.7/10. Published 2024-01-31.
- How severe is CVE-2024-23651?
- High severity. CVSS v3 base score is 8.7 out of 10.
- Is CVE-2024-23651 known to be exploited?
- 9 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.