CVE-2024-23652

CVE-2024-23652 is a critical-severity vulnerability in Mobyproject Buildkit with a CVSS 3.x base score of 10.0. 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-22.

Key facts

Description

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature.

Frequently asked questions

What is CVE-2024-23652?
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature.
How severe is CVE-2024-23652?
CVE-2024-23652 has a CVSS 3.x base score of 10.0, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity high, and availability high.
Is CVE-2024-23652 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (79th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-23652?
CVE-2024-23652 affects Mobyproject Buildkit. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-23652?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
Does CVE-2024-23652 have an EU (EUVD) identifier?
Yes. CVE-2024-23652 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0254.
When was CVE-2024-23652 published?
CVE-2024-23652 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-22 (Path Traversal) vulnerabilities

Browse all CWE-22 (Path Traversal) vulnerabilities →