CVE-2024-23651 Details
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
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/moby/buildkit/pull/4604 | CVE | PatchVendor Advisory |
| https://github.com/moby/buildkit/releases/tag/v0.12.5 | CVE | PatchRelease Notes |
| https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv | CVE | Vendor Advisory |
| https://github.com/moby/buildkit/pull/4604 | [email protected] | PatchVendor Advisory |
| https://github.com/moby/buildkit/releases/tag/v0.12.5 | [email protected] | PatchRelease Notes |
| https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mobyproject buildkit | < 0.12.5 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Feb 9, 2024 | Initial Analysis | [email protected] |
| Jan 31, 2024 | New CVE Received | [email protected] |