patchminder
Proof of concept · GitHub CVE-2024-23652

Path traversalin Moby BuildKit.

Published 31 Jan 2024 · Updated 17 Jun 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 10.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 2.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 0.12.5 or later
In plain words

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.

What to do now
  • Upgrade buildkit to 0.12.5 or later.
  • Upgrade github.com/moby/buildkit (Go) to 0.12.5 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
buildkit
before 0.12.5
0.12.5
CVE record
github.com/moby/buildkit (Go)
before 0.12.5
0.12.5
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 19 Jan 2024
    CVE ID reserved by GitHub_M.
  2. 31 Jan 2024
    Published in the CVE List.
  3. 1 Mar 2024
    First public proof of concept on GitHub.
  4. 17 Jun 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
2 repositories
GitHubno warning signs foundabian2/CVE-2024-236522 stars · created 1 Mar 2024
GitHubno warning signs foundhgyc/CVE-stand0 stars · created 19 Mar 2026Reproduction and verification of container-escape CVEs (CVE-2022-0492, CVE-2024-23652) in isolated Docker labs

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.

Related

Other BuildKit vulnerabilities

Same weakness: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-23652: Path traversal in Moby BuildKit. https://patchminder.com/cve/cve-2024-23652/ (accessed 5 December 2026).