# CVE-2026-33747: BuildKit vulnerable to malicious frontend causing file escape outside of storage root

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-02)
- Published: 2026-03-26T18:26:09.000Z
- Modified: 2026-09-10T03:50:37.172Z
- Also known as: GHSA-4c29-8rgm-jvjj, GO-2026-4858
- Related: CGA-24vx-jj57-3w5c
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- moby buildkit: < 0.28.1
- github.com/moby/buildkit (Go): before 0.28.1
- mobyproject buildkit: before 0.28.1

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/moby/buildkit/security/advisories/GHSA-4c29-8rgm-jvjj> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/moby/buildkit/releases/tag/v0.28.1> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33747> (advisory)
- <https://github.com/moby/buildkit> (package)

## Sources

- CVE List: [CVE-2026-33747](https://www.cve.org/CVERecord?id=CVE-2026-33747), CVE Terms of Use, modified 2026-03-27
- GitHub Advisory Database: [GHSA-4c29-8rgm-jvjj](https://github.com/advisories/GHSA-4c29-8rgm-jvjj), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-4858](https://pkg.go.dev/vuln/GO-2026-4858), CC-BY-4.0, modified 2026-03-28
- NVD: [CVE-2026-33747](https://nvd.nist.gov/vuln/detail/CVE-2026-33747), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33747 · Whole record: https://cve.day/CVE-2026-33747.json · Rebuilt by cve.day 2026-11-25T22:59:17.360Z
