{"cve":"CVE-2024-23652","nvd":{"published":"2024-01-31T22:15:54.377","modified":"2026-06-17T07:13:18.730","status":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1},"cwes":["CWE-22"],"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","https://github.com/moby/buildkit/pull/4603","https://github.com/moby/buildkit/releases/tag/v0.12.5"],"products":["mobyproject:buildkit"],"source":"nvd","synced_at":"2026-10-19T21:44:57.175229480+00:00"},"epss":{"cve":"CVE-2024-23652","score":0.02464,"percentile":0.84479,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4v98-7qmw-rqr8","url":"https://osv.dev/vulnerability/GHSA-4v98-7qmw-rqr8","summary":"BuildKit vulnerable to possible host system access from mount stub cleaner","modified":"2026-09-10T03:50:04.779734057Z","packages":[{"ecosystem":"Go","name":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","ranges":["<0.12.5"],"fixed":["0.12.5"]}]},{"id":"GO-2024-2494","url":"https://osv.dev/vulnerability/GO-2024-2494","summary":"Host system modification in github.com/moby/buildkit","modified":"2026-02-04T03:27:25.287124Z","packages":[{"ecosystem":"Go","name":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","ranges":["<0.12.5"],"fixed":["0.12.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}