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

Published Mar 26, 2026
·
Updated

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 BUILDKITSYNTAX. Using these options with a well-known frontend image like docker/dockerfile is not affected.

Other sources

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 BUILDKITSYNTAX. Using these options with a well-known frontend image like docker/dockerfile is not affected.

MITRE

Affected Software

2 affected componentsFixes available
go/github.com/moby/buildkit<0.28.1
0.28.1
Mobyproject Buildkit<0.28.1

Event History

Mar 26, 2026
Advisory Published
via GitHub·06:26 PM
Data Sourced
via GitHub·06:26 PM
DescriptionSeverityWeaknessAffected Software
Mar 27, 2026
CVE Published
via MITRE·12:49 AM
Data Sourced
via MITRE·12:49 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 AM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33747?

CVE-2026-33747 has been classified as a moderate severity vulnerability due to potential file writes outside the BuildKit state directory.

2

How do I fix CVE-2026-33747?

You can fix CVE-2026-33747 by upgrading to BuildKit version 0.28.1 or later.

3

What software is affected by CVE-2026-33747?

CVE-2026-33747 affects BuildKit versions prior to 0.28.1.

4

What type of vulnerability is CVE-2026-33747?

CVE-2026-33747 is a vulnerability related to improper handling of API messages in custom BuildKit frontends.

5

Can I use a workaround for CVE-2026-33747?

While a direct workaround is not specified, it is recommended to avoid using untrusted BuildKit frontends until the vulnerability is patched.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203