Path traversalin Moby BuildKit.
Proof of concept public (GitHub).
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.
- Upgrade buildkit to 0.12.5 or later.
- Upgrade github.com/moby/buildkit (Go) to 0.12.5 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 19 Jan 2024CVE ID reserved by GitHub_M.
- 31 Jan 2024Published in the CVE List.
- 1 Mar 2024First public proof of concept on GitHub.
- 17 Jun 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other BuildKit vulnerabilities
Same weakness: Path traversal
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- github.com x_refsource_MISC
Patchminder. CVE-2024-23652: Path traversal in Moby BuildKit. https://patchminder.com/cve/cve-2024-23652/ (accessed 5 December 2026).