Skip to main content

Docker CVE-2026-33747

HIGH
Path Traversal (CWE-22)
2026-03-26 https://github.com/moby/buildkit
8.4
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious BuildKit frontend image
  2. Delivery
    Set frontend via #syntax directive or BUILDKIT_SYNTAX argument
  3. Exploit
    Send crafted API message during build
  4. Execution
    Write files outside state directory
  5. Impact
    Achieve arbitrary file write with build privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires local access to BuildKit with an untrusted custom frontend specified via #syntax directive or --build-arg BUILDKIT_SYNTAX. Default Docker frontend images like docker/dockerfile are unaffected. Attacker must control the BuildKit frontend image used during build execution.

Impact

The CVSS 3.1 vector AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H indicates local attack vector with low complexity requiring no privileges or user interaction, yielding an 8.4 score. However, real-world risk is conditional on threat model: exploitation requires an attacker to convince a user to execute a build with a malicious custom frontend image, which limits practical attack surface compared to typical local vulnerabilities. The attack is not remotely exploitable and requires the target to actively use untrusted frontend sources. Standard usage with well-known frontends like docker/dockerfile remains unaffected, significantly reducing the affected population. No public exploit identified at time of analysis and no EPSS or KEV data provided. This represents elevated risk primarily for CI/CD environments pulling frontend images from untrusted registries or multi-tenant build systems where users can specify arbitrary frontends.

Exploit ScenarioDerived

An attacker distributes a malicious container frontend image through a public registry or compromised build pipeline. When a developer or CI/CD system executes a build referencing this frontend via #syntax=malicious/frontend:latest, the frontend crafts API messages that write files outside BuildKit's state directory, potentially overwriting system binaries, planting backdoors in /etc directories, or corrupting application code. The attack requires local access to the build system but no authentication, making it viable in shared build environments or through social engineering targeting developers.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 26, 2026

BuildKit versions prior to 0.28.1 allow untrusted custom frontends to write arbitrary files outside the execution state directory through crafted API messages, enabling path traversal attacks. This affects users who specify custom frontends via #syntax directives or --build-arg BUILDKIT_SYNTAX parameters with untrusted images. The vulnerability carries a CVSS score of 8.4 with local attack vector requiring no privileges or user interaction, posing high risk to confidentiality, integrity, and availability. No public exploit identified at time of analysis.

RemediationAI

Upgrade BuildKit to version 0.28.1 or later as documented in the official release at https://github.com/moby/buildkit/releases/tag/v0.28.1 and security advisory at https://github.com/moby/buildkit/security/advisories/GHSA-4c29-8rgm-jvjj. For environments where immediate patching is not feasible, restrict BuildKit frontend usage to trusted sources only by disabling or validating #syntax directives and --build-arg BUILDKIT_SYNTAX parameters. Implement allowlisting for frontend images to permit only well-known frontends like docker/dockerfile from official registries. In multi-tenant or CI/CD environments, enforce policy controls that prevent users from specifying arbitrary custom frontends until patching is complete.

Affected Packages

go github.com/moby/buildkit fix: 0.28.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

BuildKit is the Go-based build toolkit for container images used by Docker and other container platforms, identified by CPE pkg:go/github.com_moby_buildkit. The vulnerability stems from CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as path traversal. BuildKit supports extensible frontends that interpret build definitions through an API layer. The flaw exists in how BuildKit validates file paths specified by frontend API messages, allowing malicious frontends to escape the intended state directory boundary and manipulate files in arbitrary filesystem locations. This affects the core API interaction between BuildKit and custom frontend implementations.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.4 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 8.2 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 26, 2026 - 18:26 nvd
HIGH 8.4

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

BuildKit versions prior to 0.28.1 contain a path traversal vulnerability that allows untrusted container build frontends to write arbitrary files outside their intended sandbox, potentially compromising build infrastructure integrity and enabling unauthorized data access or modification. Organizations using BuildKit with custom or third-party build frontends face elevated risk of supply chain compromise and host system exposure.

Business Impact: High
Compensating Controls

Restrict BuildKit to trusted, internally-controlled frontends only; disable dynamic frontend specification via #syntax directives in Dockerfiles; enforce allowlist policies on BUILDKIT_SYNTAX build arguments; implement file system monitoring and access controls on BuildKit execution directories to detect unauthorized writes; isolate BuildKit execution environments with network segmentation and container resource limits; review and audit all custom frontends before deployment.

Threat Intelligence Overview

EPSS Score
0.0%
Top 100% exploitable
Data Quality
4 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)GitHub Advisory

pkg:go/github.com_moby_buildkit

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 12 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy