Loading...
Skip to main content

CVE-2026-33747 — Vulnerability in github.com/moby/buildkit — CVE...

HIGH

BuildKit's Malicious frontend can cause file escape outside of storage root

Published March 26, 2026Updated September 10, 2026Source: osv

Summary

### 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.

Advisory Timeline

  • First published March 26, 2026 (200 days ago).
  • Last revised September 10, 2026 — 167 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/moby/buildkit to 0.28.1 or later
go get github.com/moby/buildkit@v0.28.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/moby/buildkit
go
All versions0.28.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.

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

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-33747?
BuildKit's Malicious frontend can cause file escape outside of storage root This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
How do I check if my project is affected by CVE-2026-33747?
CVE-2026-33747 affects github.com/moby/buildkit. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-33747 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.4

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-4c29-8rgm-jvjj
GO-2026-4858

Related CVEs

  • CVE-2024-23652
    CRITICAL

    BuildKit vulnerable to possible host system access from mount stub cleaner

  • CVE-2024-23653
    CRITICAL

    Buildkit's interactive containers API does not validate entitlements check

  • CVE-2026-107809
    HIGH

    Nginx-UI AuthRequired token cookie fallback enables CSRF against management APIs

  • CVE-2026-107813
    HIGH

    Nginx UI: Incomplete fix of CVE-2026-84315 - the api/cluster router was not - wrapped in RequireSecureSession, so those sensitive mutations run without OTP step-up

  • CVE-2026-34040
    HIGH

    Moby has AuthZ plugin bypass when provided oversized request bodies

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies