Advisory

GHSA-4c29-8rgm-jvjj

Also known as: CVE-2026-33747, GO-2026-4858

Summary

BuildKit's Malicious frontend can cause file escape outside of storage root

Details

Impact
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.

Patches
The issue has been fixed in v0.28.1+

Workarounds
Issue 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-26 18:26 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/moby/buildkit

Go · All systems

Affected

  • introduced 0, fixed 0.28.1 (semver)

Fixed versions

0.28.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences