Vulnerability · Published Mar 27, 2026 · Assigned by GitHub_M

CVE-2026-33747BuildKit vulnerable to malicious frontend causing file escape outside of storage root

High 8.4

In plain English

A high-severity path traversal in buildkit from moby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.4High
Exploit odds (30 days)0.5%top 56.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24buildkit0.29.0-r0ALPINE-CVE-2026-33747
Alpine:v3.23docker29.3.1-r0ALPINE-CVE-2026-33747
Alpine:v3.24docker29.3.1-r0ALPINE-CVE-2026-33747
Debian:12docker.iono fix listedDEBIAN-CVE-2026-33747
Debian:13docker.io26.1.5+dfsg1-9+deb13u1DEBIAN-CVE-2026-33747
Debian:14docker.io28.5.2+dfsg4-3DEBIAN-CVE-2026-33747
Gogithub.com/moby/buildkit0.28.1GO-2026-4858
Gogithub.com/moby/buildkit0.28.1GHSA-4c29-8rgm-jvjj
Ubuntu:25.10docker.iono fix listedUBUNTU-CVE-2026-33747
Ubuntu:26.04:LTSdocker.iono fix listedUBUNTU-CVE-2026-33747
Ubuntu:26.10docker.iono fix listedUBUNTU-CVE-2026-33747
Ubuntu:22.04:LTSdocker.io-app29.1.3-0ubuntu3~22.04.2UBUNTU-CVE-2026-33747
Ubuntu:24.04:LTSdocker.io-app29.1.3-0ubuntu3~24.04.2UBUNTU-CVE-2026-33747
Ubuntu:25.10docker.io-appno fix listedUBUNTU-CVE-2026-33747
Ubuntu:26.04:LTSdocker.io-app29.1.3-0ubuntu4.1UBUNTU-CVE-2026-33747
Ubuntu:26.10docker.io-app29.1.3-0ubuntu5UBUNTU-CVE-2026-33747

Affected products (as reported)

VendorProductVersions
moby buildkit < 0.28.1

Weakness: CWE-22 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References