Vulnerabilities / CVE-2026-33747

critical

CVE-2026-33747

BuildKit: github.com/moby/buildkit: BuildKit: Arbitrary file write and code execution via untrusted frontend

Published Modified CWE 22
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.2CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high), Red Hat (medium), Ubuntu (medium).

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

SourcePackageFixed in
alpine 3.23docker29.3.1-r0
alpine 3.24buildkit, docker0.29.0-r0 and 1 more
alpine edgebuildkit, docker0.29.0-r0 and 1 more
chainguardbuildah, buildah-fips, cloudbeat-8.19 and 31 more1.44.0-r0 and 27 more
debian 11docker.iono fix listed
debian 12docker.iono fix listed
debian 13docker.io26.1.5+dfsg1-9+deb13u1
debian 14docker.io28.5.2+dfsg4-3
echodocker.io26.1.5+dfsg1-9+deb13u1
go::GitHub Security Advisory Gogithub.com/moby/buildkit0.28.1
minimosbuildah, buildah-fips, buildpacks-lifecycle-0.20 and 16 more1.44.1-r0 and 10 more
rapidfort alpine 3.20buildkit, docker0.29.0-r0 and 1 more
Show all 116 entries from 31 sources
SourcePackageFixed in
alpine 3.23docker29.3.1-r0
alpine 3.24buildkit0.29.0-r0
alpine 3.24docker29.3.1-r0
alpine edgebuildkit0.29.0-r0
alpine edgedocker29.3.1-r0
chainguardbuildah1.44.0-r0
chainguardbuildah-fips1.44.0-r0
chainguardcloudbeat-8.198.19.13-r2
chainguardcloudbeat-9.29.2.7-r2
chainguardcloudbeat-9.39.3.2-r1
chainguardcloudbeat-fips-8.198.19.13-r1
chainguardcloudbeat-fips-9.29.2.7-r3
chainguardcloudbeat-fips-9.39.3.2-r2
chainguardconftest0.67.1-r2
chainguardconftest-fips0.67.1-r1
chainguarddocker-cli-buildx0.32.1-r3
chainguarddocker-cli-buildx-fips0.32.1-r3
chainguarddocker-compose5.1.1-r1
chainguarddocker-compose-fips5.1.1-r1
chainguarddocker-fips-2929.5.2-r0
chainguardguac1.1.0-r2
chainguardkaniko1.25.12-r1
chainguardkaniko-fips1.25.12-r1
chainguardkubescape4.0.5-r0
chainguardkubescape-server4.0.3-r2
chainguardkubescape-server-fips4.0.3-r2
chainguardlivekit-cli2.16.0-r4
chainguardosv-scanner2.3.6-r0
chainguardpodman6.0.0-r0
chainguardpodman-fips6.0.0-r0
chainguardpodman-fips-5.80
chainguardscorecard5.4.0-r15
chainguardskaffold2.18.2-r1
chainguardskaffold-fips2.18.2-r0
chainguardtrivy0.69.3-r6
chainguardtrivy-fips0.69.3-r4
chainguardtrivy-operator0.30.1-r4
chainguardtrivy-operator-fips0.30.1-r3
chainguardzot2.1.15-r4
debian 11docker.iono fix listed
debian 12docker.iono fix listed
debian 13docker.io26.1.5+dfsg1-9+deb13u1
debian 14docker.io28.5.2+dfsg4-3
echodocker.io26.1.5+dfsg1-9+deb13u1
go::GitHub Security Advisory Gogithub.com/moby/buildkit0.28.1
minimosbuildah1.44.1-r0
minimosbuildah-fips1.44.1-r0
minimosbuildpacks-lifecycle-0.200.20.20-r6
minimosbuildpacks-lifecycle-fips-0.200.20.20-r5
minimosconftest0.67.1-r1
minimosconftest-fips0.67.1-r1
minimosdatadog-agent7.65.1-r0
minimosdocker-2525.0.17-r0
minimosdocker-2929.3.1-r0
minimosdocker-cli-buildx0.32.1-r2
minimosdocker-cli-buildx-fips0.32.1-r2
minimosdocker-compose5.1.1-r2
minimosdocker-compose-fips5.1.1-r2
minimosdocker-fips-2525.0.17-r0
minimosdocker-fips-2929.3.1-r0
minimoslivekit-cli2.16.0-r3
minimoslivekit-cli-fips2.16.0-r3
minimospodman6.0.0-r0
minimospodman-fips6.0.0-r0
rapidfort alpine 3.20buildkit0.29.0-r0
rapidfort alpine 3.20docker29.3.1-r0
rapidfort alpine 3.21buildkit0.29.0-r0
rapidfort alpine 3.21docker29.3.1-r0
rapidfort alpine 3.22buildkit0.29.0-r0
rapidfort alpine 3.22docker29.3.1-r0
rapidfort alpine 3.23buildkit0.29.0-r0
rapidfort alpine 3.23docker29.3.1-r0
rapidfort alpine 3.24buildkit0.29.0-r0
rapidfort debian 12docker.io0:26.1.5+dfsg1-9+deb13u1, 0:28.5.2+dfsg4-3
rapidfort debian 13docker.io0:26.1.5+dfsg1-9+deb13u1, 0:28.5.2+dfsg4-3
rapidfort fedora 43docker-compose5.1.3-1.fc43
rapidfort fedora 43doctl1.154.0-1.fc43
rapidfort fedora 43moby-engine29.3.1-1.fc43
rapidfort fedora 43moby-engine-nano29.3.1-1.fc43
rapidfort fedora 43moby-filesystem29.3.1-1.fc43
rapidfort fedora 43moby-rpm-macros29.3.1-1.fc43
rapidfort ubuntu 20.04docker.io0:24.0.7-0ubuntu4
rapidfort ubuntu 22.04docker.io0:24.0.7-0ubuntu4
rapidfort ubuntu 24.04docker.io0:24.0.7-0ubuntu4
Red Hatopenshift-kni/commatrixno fix listed
Red Hatopenshift4/cnf-tests-rhel8no fix listed
Red Hatopenshift4/cnf-tests-rhel9no fix listed
Red Hatopenshift4/kube-compare-artifacts-rhel9no fix listed
Red Hatopenshift4/numaresources-must-gather-rhel9no fix listed
Red Hatopenshift4/ose-secrets-store-csi-mustgather-rhel9no fix listed
root.io debian 12rootio-docker.iono fix listed
ubuntu 18.04-ESMdocker.iono fix listed
ubuntu 20.04-ESMdocker.iono fix listed
ubuntu 20.04-ESMdocker.io-app26.1.3-0ubuntu1~20.04.1+esm2
ubuntu 22.04docker.iono fix listed
ubuntu 22.04docker.io-app29.1.3-0ubuntu3~22.04.2
ubuntu 24.04docker.iono fix listed
ubuntu 24.04docker.io-app29.1.3-0ubuntu3~24.04.2
ubuntu 26.04docker.iono fix listed
ubuntu 26.04docker.io-app29.1.3-0ubuntu4.1
ubuntu 26.10docker.iono fix listed
ubuntu 26.10docker.io-app29.1.3-0ubuntu5
wolfibuildah1.44.0-r0
wolficonftest0.67.1-r2
wolfidocker-cli-buildx0.32.1-r3
wolfidocker-compose5.1.1-r1
wolfiguac1.1.0-r2
wolfikaniko1.25.12-r1
wolfikubescape4.0.5-r0
wolfiosv-scanner2.3.6-r0
wolfipodman6.0.0-r0
wolfiscorecard5.4.0-r15
wolfiskaffold2.18.2-r1
wolfitrivy0.69.3-r6
wolfitrivy-operator0.30.1-r4
wolfizot2.1.15-r4

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.