CVE-2026-33747 — Vulnerability in github.com/moby/buildkit
BuildKit's Malicious frontend can cause file escape outside of storage root
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.68%). Schedule for your next planned update.
Does your project use an affected github.com/moby/buildkit version?
Paste your go.sum to check it for CVE-2026-33747 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published March 26, 2026 (245 days ago).
- Last revised September 10, 2026 — 167 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/moby/buildkit@v0.28.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/moby/buildkit Go · Affected: All versions | 0.28.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2026-33747?
- BuildKit's Malicious frontend can cause file escape outside of storage root. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
- How do I check if my project is affected by CVE-2026-33747?
- CVE-2026-33747 affects github.com/moby/buildkit. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-33747 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 47.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2024-23652CRITICAL
BuildKit vulnerable to possible host system access from mount stub cleaner
- CVE-2024-23653CRITICAL
Buildkit's interactive containers API does not validate entitlements check
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2026-130007HIGH
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution
- CVE-2026-34040HIGH
Moby has AuthZ plugin bypass when provided oversized request bodies