cve.bz

CVE-2026-33747 mobyproject buildkit: Path traversal

9.8 criticalEPSS 0.5%Fix available

Critical (9.8) in mobyproject buildkit. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/moby/buildkit 0.28.1.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 45th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-03-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-33747 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-33747?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-33747?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-33747 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mobyproject:buildkitbefore 0.28.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4c29-8rgm-jvjjGogithub.com/moby/buildkit<0.28.10.28.1
GO-2026-4858Gogithub.com/moby/buildkit<0.28.10.28.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12docker.iono fix listedDEBIAN-CVE-2026-33747
Debian13docker.io26.1.5+dfsg1-9+deb13u1DEBIAN-CVE-2026-33747 DSA-6443-1
Debian14docker.io28.5.2+dfsg4-3DEBIAN-CVE-2026-33747
Ubuntu22.04:LTSdocker.io-app29.1.3-0ubuntu3~22.04.2UBUNTU-CVE-2026-33747
Ubuntu24.04:LTSdocker.io-app29.1.3-0ubuntu3~24.04.2UBUNTU-CVE-2026-33747
Ubuntu25.10docker.io, docker.io-appno fix listedUBUNTU-CVE-2026-33747
Ubuntu26.04:LTSdocker.io-app29.1.3-0ubuntu4.1UBUNTU-CVE-2026-33747
Ubuntu26.04:LTS, 26.10, Pro:16.04:LTS and 4 moredocker.iono fix listedUBUNTU-CVE-2026-33747
Ubuntu26.10docker.io-app29.1.3-0ubuntu5UBUNTU-CVE-2026-33747
UbuntuPro:20.04:LTSdocker.io-app26.1.3-0ubuntu1~20.04.1+esm2UBUNTU-CVE-2026-33747
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5docker-stable24.0.9_ce-1.37.1SUSE-SU-2026:2578-1
openSUSELeap 15.6govulncheck-vulndb0.0.20260402T184258-150000.1.158.1SUSE-SU-2026:1205-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSELeap 16.0tailscale1.104.1-bp160.1.1openSUSE-SU-2026:22203-1
openSUSETumbleweedconftest0.67.1-2.1openSUSE-SU-2026:10472-1
openSUSETumbleweeddocker-stable24.0.9_ce-18.1openSUSE-SU-2026:11075-1
openSUSETumbleweedtailscale1.96.4-1.1openSUSE-SU-2026:10456-1
openSUSETumbleweedtrivy0.70.0-1.1openSUSE-SU-2026:10651-1
Alpinev3.23, v3.24docker29.3.1-r0ALPINE-CVE-2026-33747
Alpinev3.24buildkit0.29.0-r0ALPINE-CVE-2026-33747
Alpaquitastreamdocker29.3.1-r0BELL-CVE-2026-33747

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

An arbitrary file write vulnerability with moderate impact was found in BuildKit, a toolkit for converting source code into build artifacts that is used by a wide range of Red Hat products and container images. When a build explicitly selects an untrusted custom BuildKit frontend, set through the `#syntax` Dockerfile directive or the `--build-arg BUILDKIT_SYNTAX` option, that frontend can craft a malicious API message that causes files to be written outside of the BuildKit state directory for the execution context. This could allow an attacker to execute unauthorized code or escalate their privileges on the system. Builds that use well-known, trusted frontend images such as `docker/dockerfile` are not affected. Red Hat rates this flaw as having moderate impact because exploitation requires local access, privileges, and user interaction to explicitly configure an untrusted frontend (Red Hat CVSS:3.1 score 8.2, vector AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H); this differs meaningfully from the NIST rating of critical (CVSS 9.8, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). A fix is being pursued for the affected Red Hat products.

Red Hat's mitigation

To mitigate this vulnerability, avoid using untrusted BuildKit frontends. Restrict the use of custom BuildKit frontends to only those from verified and trusted sources. Do not specify untrusted frontends via `#syntax` or `--build-arg BUILDKIT_SYNTAX`.

ProductPackageStateAdvisory
multicluster engine for Kubernetes 2.10multicluster-engine/must-gather-rhel9:1784849867Fixed 2026-07-27RHSA-2026:46885
multicluster engine for Kubernetes 2.10multicluster-engine/must-gather-rhel9:1784849867Fixed 2026-07-28RHSA-2026:47388
multicluster engine for Kubernetes 2.8multicluster-engine/must-gather-rhel9:1782158798Fixed 2026-06-28RHSA-2026:30650
OpenShift API for Data Protection 1.3oadp/oadp-mustgather-rhel9:1785177359Fixed 2026-08-06RHSA-2026:51033
OpenShift API for Data Protection 1.4oadp/oadp-mustgather-rhel9:1779770049Fixed 2026-06-25RHSA-2026:29854
OpenShift API for Data Protection 1.5oadp/oadp-mustgather-rhel9:1779770057Fixed 2026-06-17RHSA-2026:26568
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9:1783696512Fixed 2026-07-21RHSA-2026:42644
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9:1783696506Fixed 2026-07-21RHSA-2026:42644
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9:1783616068Fixed 2026-07-21RHSA-2026:42644
Red Hat OpenShift AI 2.25rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1783998551Fixed 2026-07-21RHSA-2026:42644
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Affected
Confidential Compute Attestationopenshift-sandboxed-containers/osc-must-gather-rhel9Will not fix
Kernel Module Management Operator for Red Hat Openshiftkmm/kernel-module-management-must-gather-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-rhel9-operatorWill not fix
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-rhel9-operatorNot affected
Logical Volume Manager Storagelvms4/lvms-must-gather-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-cli-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-discovery-addon-rhel9Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-log-reader-rhel8Affected
Migration Toolkit for Containersrhmtc/openshift-migration-must-gather-rhel8Affected
133 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-33747.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON