
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-33747 is a path traversal vulnerability in Moby's BuildKit toolkit that allows a malicious custom frontend to write files outside of the BuildKit state directory for the execution context. It affects all BuildKit versions prior to 0.28.1 (i.e., <= v0.28.0). The vulnerability was published on March 25, 2026, by maintainer tonistiigi and added to the GitHub Advisory Database on March 26, 2026. The CVSS v3.1 score from the GitHub Advisory is 8.4 (High) with a local attack vector, while Feedly's estimate assigns a score of 9.8 (Critical) with a network attack vector (GitHub Advisory, BuildKit Advisory).
The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory — Path Traversal). When a user invokes a build using a custom BuildKit frontend specified via the #syntax directive in a Dockerfile or the --build-arg BUILDKIT_SYNTAX build argument, the untrusted frontend can craft a malicious API message that causes BuildKit to write files to arbitrary locations outside its designated state directory. The precondition for exploitation is that the victim must use an untrusted or attacker-controlled frontend image; builds using well-known, trusted frontends such as docker/dockerfile are not affected. The fix was included in the v0.28.1 release, which added sufficient validation to prevent such path escapes (GitHub Advisory, BuildKit Release).
Successful exploitation allows an attacker-controlled frontend to overwrite arbitrary files on the host system accessible to the BuildKit daemon, potentially including sensitive configuration files, credentials, or binaries. This can result in high confidentiality impact (unauthorized file read via overwrite of accessible paths), high integrity impact (modification of arbitrary system files), and high availability impact (corruption of critical files). Depending on which files are overwritten, exploitation could lead to privilege escalation or remote code execution on the build host (GitHub Advisory, BuildKit Advisory).
As of the time of reporting, there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation (GitHub Advisory). The EPSS score is approximately 0.006% (0.000060), placing it in the 20th percentile for exploitation likelihood within 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. Exploitation requires social engineering or supply chain compromise to convince a developer to use a malicious frontend image.
../../) in file path fields intended to reference locations within the BuildKit state directory.#syntax directive: The attacker tricks a developer or CI/CD pipeline into using a Dockerfile that begins with # syntax=attacker-registry/malicious-frontend:latest, or passes --build-arg BUILDKIT_SYNTAX=attacker-registry/malicious-frontend:latest to the build command.docker build or an equivalent BuildKit command, BuildKit pulls and executes the attacker's frontend, which sends the crafted API message to the BuildKit daemon./etc/cron.d/ entries, SSH authorized keys, or other sensitive files), potentially enabling persistence or code execution (GitHub Advisory, BuildKit Advisory)./var/lib/buildkit/) that were recently written during a build operation; new or altered files in sensitive directories such as /etc/, /root/.ssh/, or cron directories with timestamps matching build activity.../ sequences or paths outside the expected state root; Docker build logs referencing an unfamiliar or external #syntax frontend image.buildkitd) performing unexpected file I/O to system directories not associated with normal build artifact storage.Upgrade BuildKit to version 0.28.1 or later, which contains the fix for this vulnerability (BuildKit Release). As a workaround prior to patching, avoid using untrusted or custom BuildKit frontends; only use well-known, verified frontend images such as docker/dockerfile. Audit all Dockerfiles and CI/CD pipeline configurations for use of the #syntax directive or --build-arg BUILDKIT_SYNTAX with external or unverified image sources, and restrict these to approved registries. Red Hat has also issued errata (RHSA-2026:9440, RHSA-2026:9453, RHSA-2026:10125) and SUSE/openSUSE have released security updates addressing this CVE (GitHub Advisory).
The vulnerability was disclosed by maintainer tonistiigi of the Moby/BuildKit project and credited to reporter 1seal (BuildKit Advisory). Downstream vendors including Red Hat, SUSE, openSUSE, and Ubuntu have issued security advisories and package updates. Coverage has appeared on Linux security news aggregators and vulnerability tracking platforms, with no significant controversy or notable researcher commentary beyond standard patch advisories.
Fix availability across major Linux distributions and their releases.
bookworm
docker.io
sid
docker.io: 28.5.2+dfsg4-3
trixie
docker.io: 26.1.5+dfsg1-9+deb13u1
bionic (esm-apps)
docker.io
devel
docker.io
focal (esm-apps)
docker.io
jammy
docker.io
jammy (esm-apps)
docker.io
noble
docker.io
noble (esm-apps)
docker.io
resolute
docker.io
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."