{"id":"GHSA-4v98-7qmw-rqr8","revision":"ce022be826814250bf5e7a8fdf32a02f","records":[{"revision":"ce022be826814250bf5e7a8fdf32a02f","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-4v98-7qmw-rqr8","aliases":["CVE-2024-23652","GO-2024-2494"],"title":"BuildKit vulnerable to possible host system access from mount stub cleaner","description":"### Impact\nA 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.\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 `RUN --mount` feature.\n\n### References\n\n","state":0,"publishedAt":"2024-01-31T22:43:26+00:00","modifiedAt":"2026-09-10T03:50:04.7797341+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:L/PR:N/UI:N/S:C/C:N/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8","https://nvd.nist.gov/vuln/detail/CVE-2024-23652","https://github.com/moby/buildkit/pull/4603","https://github.com/moby/buildkit","https://github.com/moby/buildkit/releases/tag/v0.12.5"],"sourceUrl":"https://github.com/advisories/GHSA-4v98-7qmw-rqr8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4v98-7qmw-rqr8","identifiers":["GHSA-4v98-7qmw-rqr8","CVE-2024-23652","GO-2024-2494"]},"retained":false,"historicalAffected":[]}],"coverage":[]}