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
- Severity: Critical (CVSS 3.x base score 10.0)
- EPSS exploit prediction: 2% (80th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-0254
- Weakness: CWE-22
- 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. 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% (80th 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
- https://github.com/moby/buildkit/pull/4603
- https://github.com/moby/buildkit/releases/tag/v0.12.5
- https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8
Affected products (1)
- cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:*
More vulnerabilities in Mobyproject Buildkit
- 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-2024-23651 — High (CVSS 8.7): 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-15793 — High (CVSS 7.5): BuildKit custom frontends or clients using the raw low-level API can set git.checkoutbundle=true when checking out Git…
- CVE-2026-15792 — High (CVSS 7.5): A malicious BuildKit client or frontend could craft a request that could lead to BuildKit daemon crashing with a panic.
- CVE-2026-15791 — High (CVSS 7.5): A crafted message in the BuildKit low-level build API can be used to remove the contents of the /tmp directory. The…
All CVEs affecting Mobyproject Buildkit →
Other CWE-22 (Path Traversal) vulnerabilities
- CVE-2026-76606 — Critical (CVSS 10.0): Joomla Extension - fabrikar.com - Path Traversal via image element in Fabrik < 4.7.3 - ???.
- CVE-2026-18051 — Critical (CVSS 10.0): The W3 Total Cache WordPress plugin before 2.10.5 does not properly validate the request path it uses to build cache…
- CVE-2026-74764 — Critical (CVSS 10.0): Pandora contains a path traversal vulnerability in its TAR archive extraction functionality. When processing a…
- CVE-2026-16940 — Critical (CVSS 10.0): The Custom Fields WordPress plugin before 1.5.1 does not validate a user-supplied file path before deletion, allowing…
- CVE-2026-67429 — Critical (CVSS 10.0): Flyto2 Core is an execution kernel for automation and AI-agent workflows. Prior to 2.26.6, image.download and related…
- CVE-2026-59555 — Critical (CVSS 10.0): Unauthenticated Arbitrary File Deletion in Participants Database <= 2.7.8.3 versions.