CVE-2026-33747: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in moby buildkit
CVE-2026-33747 is a path traversal vulnerability in moby buildkit versions prior to 0. 28. 1. It allows a malicious custom BuildKit frontend to write files outside the intended BuildKit state directory by crafting a specially designed API message. This issue requires the use of an untrusted frontend set via `#syntax` or `--build-arg BUILDKIT_SYNTAX`. Well-known frontend images like `docker/dockerfile` are not affected. The vulnerability has been fixed in version 0. 28. 1.
AI Analysis
Technical Summary
BuildKit is a toolkit used for building software artifacts efficiently. Versions before 0.28.1 contain a CWE-22 path traversal vulnerability where a custom BuildKit frontend can cause files to be written outside the BuildKit state directory by sending a crafted API message. This can only be exploited if an untrusted frontend is used with the `#syntax` or `--build-arg BUILDKIT_SYNTAX` options. Official and well-known frontends such as `docker/dockerfile` do not exhibit this vulnerability. The issue was resolved in BuildKit version 0.28.1.
Potential Impact
Successful exploitation allows an attacker controlling a custom BuildKit frontend to write files outside the intended directory, potentially leading to arbitrary code execution, data corruption, or denial of service. The CVSS v3.1 score is 8.4 (high), reflecting high confidentiality, integrity, and availability impacts. However, exploitation requires use of an untrusted frontend, limiting the attack surface.
Mitigation Recommendations
Upgrade BuildKit to version 0.28.1 or later where this vulnerability is fixed. Avoid using untrusted custom BuildKit frontends with the `#syntax` or `--build-arg BUILDKIT_SYNTAX` options. Using well-known frontend images like `docker/dockerfile` is not affected and considered safe. Patch status is confirmed fixed in v0.28.1.
CVE-2026-33747: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in moby buildkit
Description
CVE-2026-33747 is a path traversal vulnerability in moby buildkit versions prior to 0. 28. 1. It allows a malicious custom BuildKit frontend to write files outside the intended BuildKit state directory by crafting a specially designed API message. This issue requires the use of an untrusted frontend set via `#syntax` or `--build-arg BUILDKIT_SYNTAX`. Well-known frontend images like `docker/dockerfile` are not affected. The vulnerability has been fixed in version 0. 28. 1.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
BuildKit is a toolkit used for building software artifacts efficiently. Versions before 0.28.1 contain a CWE-22 path traversal vulnerability where a custom BuildKit frontend can cause files to be written outside the BuildKit state directory by sending a crafted API message. This can only be exploited if an untrusted frontend is used with the `#syntax` or `--build-arg BUILDKIT_SYNTAX` options. Official and well-known frontends such as `docker/dockerfile` do not exhibit this vulnerability. The issue was resolved in BuildKit version 0.28.1.
Potential Impact
Successful exploitation allows an attacker controlling a custom BuildKit frontend to write files outside the intended directory, potentially leading to arbitrary code execution, data corruption, or denial of service. The CVSS v3.1 score is 8.4 (high), reflecting high confidentiality, integrity, and availability impacts. However, exploitation requires use of an untrusted frontend, limiting the attack surface.
Mitigation Recommendations
Upgrade BuildKit to version 0.28.1 or later where this vulnerability is fixed. Avoid using untrusted custom BuildKit frontends with the `#syntax` or `--build-arg BUILDKIT_SYNTAX` options. Using well-known frontend images like `docker/dockerfile` is not affected and considered safe. Patch status is confirmed fixed in v0.28.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-23T18:30:14.124Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69c5da053c064ed76f01c442
Added to database: 3/27/2026, 1:14:45 AM
Last enriched: 4/3/2026, 1:32:33 PM
Last updated: 5/11/2026, 3:06:38 AM
Views: 132
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.