{"id":"GHSA-m3r6-h7wv-7xxv","revision":"56871d7784824486956449198250d8b5","records":[{"revision":"56871d7784824486956449198250d8b5","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-m3r6-h7wv-7xxv","aliases":["CVE-2024-23651","GO-2024-2493"],"title":"BuildKit vulnerable to possible race condition with accessing subpaths from cache mounts","description":"### Impact\nTwo 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.\n\n### Patches\nThe issue has been fixed in v0.12.5\n\n### Workarounds\nAvoid using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with `--mount=type=cache,source=...` options.\n\n### References\nhttps://www.openwall.com/lists/oss-security/2019/05/28/1\n","state":0,"publishedAt":"2024-01-31T22:43:32+00:00","modifiedAt":"2026-09-10T03:50:09.4406632+00:00","affected":[{"ecosystem":"Go","name":"github.com/moby/buildkit","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.12.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv","https://nvd.nist.gov/vuln/detail/CVE-2024-23651","https://github.com/moby/buildkit/pull/4604","https://github.com/moby/buildkit","https://github.com/moby/buildkit/releases/tag/v0.12.5"],"sourceUrl":"https://github.com/advisories/GHSA-m3r6-h7wv-7xxv","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-m3r6-h7wv-7xxv","identifiers":["GHSA-m3r6-h7wv-7xxv","CVE-2024-23651","GO-2024-2493"]},"retained":false,"historicalAffected":[]}],"coverage":[]}