Vulnerability record · CVE-2024-23651 · published 31 January 2024
CVE-2024-23651: Mobyproject buildkit race condition vulnerability
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 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.
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:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/moby/buildkit/pull/4604 | PatchVendor Advisory |
| https://github.com/moby/buildkit/releases/tag/v0.12.5 | PatchRelease Notes |
| https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv | Vendor Advisory |
| https://github.com/moby/buildkit/pull/4604 | PatchVendor Advisory |
| https://github.com/moby/buildkit/releases/tag/v0.12.5 | PatchRelease Notes |
| https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv | Vendor Advisory |
Track CVE-2024-23651 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2024-23651), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.