{"cve":"CVE-2024-23651","nvd":{"published":"2024-01-31T22:15:54.183","modified":"2026-06-17T07:13:18.610","status":"Modified","description":"BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container. The issue has been fixed in v0.12.5. Workarounds include, avoiding using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with --mount=type=cache,source=... options.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4},"cwes":["CWE-362"],"references":["https://github.com/moby/buildkit/pull/4604","https://github.com/moby/buildkit/releases/tag/v0.12.5","https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv","https://github.com/moby/buildkit/pull/4604","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-23651","score":0.00911,"percentile":0.6001,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m3r6-h7wv-7xxv","url":"https://osv.dev/vulnerability/GHSA-m3r6-h7wv-7xxv","summary":"BuildKit vulnerable to possible race condition with accessing subpaths from cache mounts","modified":"2026-09-10T03:50:09.440663237Z","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-2493","url":"https://osv.dev/vulnerability/GO-2024-2493","summary":"Host system file access in github.com/moby/buildkit","modified":"2026-02-04T03:54:04.291374Z","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."]}