CVE-2024-23651
CVE-2024-23651 is a high-severity vulnerability in Mobyproject Buildkit with a CVSS 3.x base score of 8.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-362.
Key facts
- Severity: High (CVSS 3.x base score 8.7)
- EPSS exploit prediction: 1% (52nd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-0383
- Weakness: CWE-362
- Affected product: Mobyproject Buildkit
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2024-23651?
- CVE-2024-23651 has a CVSS 3.x base score of 8.7, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability none.
- Is CVE-2024-23651 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (52nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-23651?
- CVE-2024-23651 affects Mobyproject Buildkit. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-23651?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2024-23651 have an EU (EUVD) identifier?
- Yes. CVE-2024-23651 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0383.
- When was CVE-2024-23651 published?
- CVE-2024-23651 was published on 2024-01-31 and last updated on 2026-06-17.
References
- https://github.com/moby/buildkit/pull/4604
- https://github.com/moby/buildkit/releases/tag/v0.12.5
- https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv
Affected products (1)
- cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:*
More vulnerabilities in Mobyproject Buildkit
- CVE-2024-23652 — Critical (CVSS 10.0): BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner.…
- CVE-2024-23653 — Critical (CVSS 9.8): BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner.…
- CVE-2026-33747 — High (CVSS 8.4): BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner.…
- CVE-2026-33748 — High (CVSS 7.5): BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner.…
- CVE-2023-26054 — Medium (CVSS 6.5): BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner.…
- CVE-2024-23650 — Medium (CVSS 5.3): BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner.…
All CVEs affecting Mobyproject Buildkit →
Other CWE-362 (Race Condition) vulnerabilities
- CVE-2022-27626 — Critical (CVSS 10.0): A vulnerability regarding concurrent execution using shared resource with improper synchronization ('Race Condition')…
- CVE-2015-8556 — Critical (CVSS 10.0): Local privilege escalation vulnerability in the Gentoo QEMU package before 2.5.0-r1.
- CVE-2014-0703 — Critical (CVSS 10.0): Cisco Wireless LAN Controller (WLC) devices 7.4 before 7.4.110.0 distribute Aironet IOS software with a race condition…
- CVE-2010-1228 — Critical (CVSS 10.0): Multiple race conditions in the sandbox infrastructure in Google Chrome before 4.1.249.1036 have unspecified impact and…
- CVE-2008-6598 — Critical (CVSS 10.0): Multiple race conditions in WANPIPE before 3.3.6 have unknown impact and attack vectors related to "bri restart logic."
- CVE-2026-46137 — Critical (CVSS 9.8): In the Linux kernel, the following vulnerability has been resolved: mptcp: pm: ADD_ADDR rtx: fix potential…