Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI 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-33748

CVE-2026-33748: BuildKit Path Traversal Vulnerability

CVE-2026-33748 is a path traversal vulnerability in BuildKit that allows access to files outside Git repository roots via malicious URL fragments. This article covers technical details, affected versions, and mitigation.

Published: April 3, 2026

CVE-2026-33748 Overview

CVE-2026-33748 is a Path Traversal vulnerability in BuildKit, a toolkit for converting source code to build artifacts. Prior to version 0.28.1, insufficient validation of Git URL fragment subdir components may allow access to files outside the checked-out Git repository root. This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).

Critical Impact

Attackers can exploit insufficient validation in Git URL subdir components to access sensitive files outside the repository root, potentially exposing credentials, configuration files, or other sensitive data on the same mounted filesystem.

Affected Products

  • BuildKit versions prior to 0.28.1
  • Docker builds using Git URLs with subpath components
  • Container build pipelines utilizing BuildKit with untrusted Git sources

Discovery Timeline

  • 2026-03-27 - CVE CVE-2026-33748 published to NVD
  • 2026-03-30 - Last updated in NVD database

Technical Details for CVE-2026-33748

Vulnerability Analysis

This Path Traversal vulnerability exists due to insufficient validation of the subdir component in Git URL fragments when BuildKit processes build contexts. When a user specifies a Git URL with a subpath component (using the #:<subdir> syntax), BuildKit fails to properly validate whether the specified subdirectory path remains within the boundaries of the checked-out repository.

The vulnerability specifically affects builds that use Git URLs with a subpath component, such as https://github.com/user/repo.git#:<subdir>. An attacker can craft a malicious subdir value containing path traversal sequences or symlinks that point outside the repository root.

Access through this vulnerability is limited to files on the same mounted filesystem as the repository. This means attackers cannot traverse across filesystem boundaries, but can potentially access sensitive configuration files, credentials, or other data stored on the same volume.

Root Cause

The root cause is inadequate input validation in the Git URL fragment parser. When processing the subdir component of a Git URL, BuildKit does not sufficiently verify that the resolved path stays within the checked-out repository directory. The validation fails to account for symlinks within the repository that could point to arbitrary locations on the filesystem, or for insufficient normalization of path traversal sequences.

Attack Vector

The attack is network-based and does not require authentication. An attacker can exploit this vulnerability by:

  1. Creating a malicious Git repository containing a symlink in a subdirectory that points outside the repository
  2. Convincing a victim to build a Dockerfile from the attacker-controlled repository using a Git URL with the malicious subdir component
  3. The symlink is followed during the build process, allowing the attacker to include files from outside the repository in the build context

The vulnerability requires the build process to use Git URLs with subpath components from untrusted sources. If an organization only builds from trusted, internal repositories, the risk is significantly reduced.

For detailed technical information about this vulnerability, see the GitHub Security Advisory GHSA-4vrq-3vrq-g6gg and the Docker Context Documentation.

Detection Methods for CVE-2026-33748

Indicators of Compromise

  • Build logs showing unexpected file paths being accessed outside repository directories
  • Git URL fragments containing suspicious path traversal sequences (../) or symlink references
  • Anomalous build context sizes that indicate additional files being included
  • Error messages indicating attempts to access files outside the expected build context

Detection Strategies

  • Monitor build logs for Git URLs containing unusual subdir components with path traversal patterns
  • Implement file integrity monitoring on sensitive configuration directories that should not be accessed during builds
  • Audit build pipelines for use of external Git URLs with subpath components from untrusted sources
  • Review BuildKit version deployments across infrastructure to identify vulnerable instances

Monitoring Recommendations

  • Enable verbose logging for BuildKit operations to capture full Git URL parameters
  • Implement alerting for builds that reference Git repositories from external or untrusted domains
  • Monitor for symlinks being created or followed during container build processes
  • Track file access patterns during builds that deviate from expected repository contents

How to Mitigate CVE-2026-33748

Immediate Actions Required

  • Upgrade BuildKit to version 0.28.1 or later immediately
  • Audit all build pipelines for use of Git URLs with subdir components from untrusted sources
  • Review recent builds for potential exploitation attempts by examining build logs
  • Temporarily disable builds from external Git repositories until patching is complete

Patch Information

The vulnerability has been fixed in BuildKit version v0.28.1. Organizations should upgrade to this version or later to remediate the vulnerability. The fix addresses the insufficient validation of Git URL fragment subdir components by implementing proper path validation and symlink handling.

For official release information, see the GitHub BuildKit Release v0.28.1.

Workarounds

  • Avoid building Dockerfiles from untrusted sources or Git repositories
  • Do not use the subdir component with Git URLs from untrusted repositories where the subdir could point to a symlink
  • Implement network segmentation to restrict build processes from accessing sensitive filesystems
  • Use local build contexts instead of Git URLs when building from external sources
bash
# Configuration example
# Use local context instead of Git URL with subdir
# Instead of: docker build https://github.com/user/repo.git#:subdir
# Clone and build locally:
git clone https://github.com/user/repo.git
cd repo/subdir
docker build .

# Or upgrade BuildKit to patched version
# Check current version
buildctl --version

# Pull updated buildkit image
docker pull moby/buildkit:v0.28.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/TechBuildkit

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • Docker Context Documentation

  • GitHub BuildKit Release v0.28.1

  • GitHub Security Advisory GHSA-4vrq-3vrq-g6gg
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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