{"id":"CVE-2026-33747","aliases":["CVE-2026-33747","GHSA-4c29-8rgm-jvjj","GO-2026-4858"],"related":["CGA-24vx-jj57-3w5c"],"kind":"vulnerability","state":"published","title":"BuildKit vulnerable to malicious frontend causing file escape outside of storage root","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen 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.\n\n### Patches\nThe issue has been fixed in v0.28.1+\n\n### Workarounds\nIssue 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"BuildKit's Malicious frontend can cause file escape outside of storage root in github.com/moby/buildkit","format":"markdown","source":"go"},{"lang":"es","text":"BuildKit es un conjunto de herramientas para convertir código fuente en artefactos de compilación de manera eficiente, expresiva y repetible. Antes de la versión 0.28.1, al usar un frontend de BuildKit personalizado, el frontend puede elaborar un mensaje de API que provoca que se escriban archivos fuera del directorio de estado de BuildKit para el contexto de ejecución. El problema ha sido solucionado en la v0.28.1. La vulnerabilidad requiere usar un frontend de BuildKit no confiable configurado con '#syntax' o '--build-arg BUILDKIT_SYNTAX'. El uso de estas opciones con una imagen de frontend conocida como 'docker/dockerfile' no se ve afectado.","source":"nvd"}],"published":"2026-03-26T18:26:09.000Z","modified":"2026-09-10T03:50:37.172Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.28.1","status":"affected"}],"vendor":"moby","product":"buildkit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.28.1"}],"ecosystem":"Go","package":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.28.1"}],"ecosystem":"Go","package":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","source":"go"},{"ranges":[{"status":"affected","fixed":"0.28.1"}],"vendor":"mobyproject","product":"buildkit","cpe":"cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-4c29-8rgm-jvjj","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/moby/buildkit/releases/tag/v0.28.1","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33747","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/moby/buildkit","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-03-27T13:25:53.698Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33747","url":"https://www.cve.org/CVERecord?id=CVE-2026-33747","licence":"CVE Terms of Use","modified":"2026-03-27T19:59:06.907Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4c29-8rgm-jvjj","url":"https://github.com/advisories/GHSA-4c29-8rgm-jvjj","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:37.172Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4858","url":"https://pkg.go.dev/vuln/GO-2026-4858","licence":"CC-BY-4.0","modified":"2026-03-28T15:59:16.576Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33747","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33747","licence":"Public domain","modified":"2026-06-17T10:38:01.807Z"}],"updatedAt":"2026-11-25T22:59:17.360Z","epss":{"score":0.00554,"percentile":0.47672,"date":"2026-12-02T12:00:21.000Z"}}