The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33747

CVE-2026-33747: Mobyproject Buildkit Path Traversal Flaw

CVE-2026-33747 is a path traversal vulnerability in Mobyproject Buildkit allowing untrusted frontends to write files outside the state directory. This article covers technical details, affected versions, and mitigation.

Published: April 3, 2026

CVE-2026-33747 Overview

CVE-2026-33747 is a critical path traversal vulnerability in BuildKit, 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. This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).

Critical Impact

A malicious or untrusted BuildKit frontend can exploit this path traversal vulnerability to write arbitrary files outside the intended state directory, potentially leading to remote code execution, container escape, or compromise of the host system.

Affected Products

  • Mobyproject BuildKit versions prior to 0.28.1
  • Container build environments utilizing custom or untrusted BuildKit frontends
  • Docker build processes using #syntax directive or --build-arg BUILDKIT_SYNTAX with untrusted frontend images

Discovery Timeline

  • 2026-03-27 - CVE CVE-2026-33747 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-33747

Vulnerability Analysis

This vulnerability stems from insufficient validation of file paths within the BuildKit frontend communication protocol. BuildKit allows custom frontends to be specified via the #syntax directive in Dockerfiles or through the --build-arg BUILDKIT_SYNTAX build argument. When processing API messages from these frontends, BuildKit fails to properly sanitize path components, allowing a malicious frontend to traverse outside the designated state directory.

The exploitation requires the use of an untrusted BuildKit frontend. Using well-known, trusted frontend images such as docker/dockerfile is not affected by this vulnerability. The attack surface is limited to scenarios where users explicitly configure their builds to use custom or third-party frontend images.

Root Cause

The root cause is a path traversal vulnerability (CWE-22) in how BuildKit handles file path operations from frontend API messages. The application does not properly validate or sanitize path input, allowing directory traversal sequences (such as ../) to escape the intended state directory boundaries.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker must craft a malicious BuildKit frontend image and convince a victim to use it via the #syntax directive or --build-arg BUILDKIT_SYNTAX parameter. Once the malicious frontend is invoked during a build process, it can send specially crafted API messages that instruct BuildKit to write files to arbitrary locations on the filesystem outside the execution context's state directory.

The vulnerability manifests when the BuildKit daemon processes file operations from frontend API messages without proper path canonicalization. A malicious frontend can include relative path components in the destination path parameter, causing files to be written to sensitive locations. For detailed technical information, see the GitHub Security Advisory.

Detection Methods for CVE-2026-33747

Indicators of Compromise

  • Unexpected file modifications outside BuildKit state directories (typically /var/lib/buildkit/)
  • Build logs showing usage of unknown or untrusted frontend images via #syntax directive
  • Suspicious file write operations during container build processes
  • Presence of unauthorized files in sensitive system directories following build operations

Detection Strategies

  • Monitor Dockerfile contents for #syntax directives pointing to non-standard or untrusted frontend images
  • Audit build arguments for BUILDKIT_SYNTAX values that reference unknown registries or images
  • Implement file integrity monitoring on the BuildKit host system to detect unauthorized file modifications
  • Review container image provenance and verify that frontend images originate from trusted sources

Monitoring Recommendations

  • Enable detailed BuildKit logging and monitor for anomalous file operation patterns
  • Implement network segmentation to limit BuildKit daemon exposure
  • Configure alerting on file system changes outside expected build artifact directories
  • Regularly audit the list of allowed frontend images in your build pipeline configuration

How to Mitigate CVE-2026-33747

Immediate Actions Required

  • Upgrade BuildKit to version 0.28.1 or later immediately
  • Audit all Dockerfiles and build configurations for usage of custom frontends via #syntax or BUILDKIT_SYNTAX
  • Restrict the use of untrusted or unknown BuildKit frontend images in your build environments
  • Implement allow-lists for permitted frontend images in CI/CD pipelines

Patch Information

The vulnerability has been fixed in BuildKit version 0.28.1. Organizations should upgrade to this version or later to remediate the vulnerability. Release notes and download links are available at the GitHub BuildKit Release v0.28.1. Additional details about the security fix are documented in the GitHub Security Advisory GHSA-4c29-8rgm-jvjj.

Workarounds

  • Only use well-known, trusted frontend images such as docker/dockerfile from official Docker repositories
  • Remove or replace any #syntax directives that reference untrusted frontend images
  • Avoid using --build-arg BUILDKIT_SYNTAX with untrusted values in build commands
  • Implement image signing and verification to ensure frontend image integrity before use
bash
# Configuration example - Verify BuildKit version and use trusted frontend
# Check current BuildKit version
buildctl --version

# Use only trusted official frontend in Dockerfiles
# syntax=docker/dockerfile:1

# Explicitly specify trusted frontend in build commands
docker build --build-arg BUILDKIT_SYNTAX=docker/dockerfile:1 .

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMobyproject

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub BuildKit Release v0.28.1
  • Vendor Resources
  • GitHub Security Advisory GHSA-4c29-8rgm-jvjj
  • Related CVEs
  • CVE-2024-23652: Mobyproject BuildKit Path Traversal Flaw

  • CVE-2024-23651: Moby BuildKit Race Condition Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English