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

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

Affected products (1)

More vulnerabilities in Mobyproject Buildkit

All CVEs affecting Mobyproject Buildkit →

Other CWE-362 (Race Condition) vulnerabilities

Browse all CWE-362 (Race Condition) vulnerabilities →