{"id":"CVE-2024-23652","url":"https://www.cyber-defence.io/tools/cve/CVE-2024-23652","generatedAt":"2026-10-28T00:51:22.284Z","title":"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.","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.","published":"2024-01-31T22:15:54.000Z","lastModified":"2026-06-17T07:13:19.000Z","status":"Modified","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":9.1,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"},"cwe":["CWE-22"],"affected":["mobyproject/buildkit"],"epss":{"score":0.02464,"percentile":0.84362,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (2.46%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://github.com/moby/buildkit/pull/4603","tags":["Patch","Vendor Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/moby/buildkit/releases/tag/v0.12.5","tags":["Patch","Release Notes"],"source":"security-advisories@github.com"},{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8","tags":["Vendor Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/moby/buildkit/pull/4603","tags":["Patch","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/moby/buildkit/releases/tag/v0.12.5","tags":["Patch","Release Notes"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-23652","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}