CVE-2026-33747
March 27, 2026
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.
Affected Packages
github.com/moby/buildkit (GO):
Affected version(s) >=v0.3.0 <v0.28.1Fix Suggestion:
Update to version v0.28.1github.com/moby/buildkit (GO):
Affected version(s) >=v0.3.0 <v0.28.1Fix Suggestion:
Update to version v0.28.1github.com/moby/buildkit (GO):
Affected version(s) >=v0.3.0 <v0.28.1Fix Suggestion:
Update to version v0.28.1Related ResourcesĀ (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.6
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.4
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
EPSS
Base Score:
0.01