{"id":"CVE-2026-33747","published":"2026-03-27T00:49:06Z","modified":"2026-03-27T19:59:06Z","title":"BuildKit vulnerable to malicious frontend causing file escape outside of storage root","vendor":"moby","product":"buildkit","tier":"tail","description":{"text":"BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Prior to version 0.28.1, when using a custom BuildKit frontend, the frontend can craft an API message that causes files to be written outside of the BuildKit state directory for the execution context. The issue has been fixed in v0.28.1. The vulnerability requires using an untrusted BuildKit frontend set with `#syntax` or `--build-arg BUILDKIT_SYNTAX`. Using these options with a well-known frontend image like `docker/dockerfile` is not affected.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00554,"percentile":0.47159,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-4c29-8rgm-jvjj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/moby/buildkit/releases/tag/v0.28.1","tags":["x_refsource_MISC"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":9.43},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"moby","affectedVersions":[{"vendor":"moby","product":"buildkit","versions":["< 0.28.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-03-27T13:25:53.698360Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/moby/buildkit","vulnerableRanges":["<0.28.1"],"patched":["0.28.1"],"from":["GHSA-4c29-8rgm-jvjj","GO-2026-4858"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in moby's BuildKit, a toolkit for converting source code into build artifacts, lets a custom frontend craft API messages that write files outside the BuildKit state directory for the execution context. An attacker would need a malicious or untrusted BuildKit frontend to be used, set via #syntax or --build-arg BUILDKIT_SYNTAX, with local access and no authentication required; the well-known docker/dockerfile frontend is not affected, and the issue is fixed in v0.28.1 and later.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:44Z"},"euvd":{"id":"EUVD-2026-16518","exploited":false,"provenance":"source"}}