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-29790

CVE-2026-29790: dbt-common Path Traversal Vulnerability

CVE-2026-29790 is a path traversal vulnerability in dbt-common that allows malicious tarballs to extract files outside intended directories. This article covers technical details, affected versions, security impact, and mitigation.

Published: March 13, 2026

CVE-2026-29790 Overview

CVE-2026-29790 is a path traversal vulnerability in dbt-common, the shared common utilities library for dbt-core and adapter implementations. The vulnerability exists in the safe_extract() function used when extracting tarball archives. The function uses os.path.commonprefix() to validate that extracted files remain within the intended destination directory. However, commonprefix() compares paths character-by-character rather than by path components, allowing a malicious tarball to write files to sibling directories with matching name prefixes.

Critical Impact

A malicious tarball archive can exploit the flawed path validation to write files outside the intended extraction directory, potentially overwriting configuration files or placing malicious code in unexpected locations.

Affected Products

  • dbt-common versions prior to 1.34.2
  • dbt-common versions prior to 1.37.3
  • dbt-core and adapter implementations using vulnerable dbt-common versions

Discovery Timeline

  • 2026-03-06 - CVE CVE-2026-29790 published to NVD
  • 2026-03-09 - Last updated in NVD database

Technical Details for CVE-2026-29790

Vulnerability Analysis

This path traversal vulnerability (CWE-22) stems from improper path validation during tarball extraction. The safe_extract() function was designed to prevent directory traversal attacks by ensuring extracted files remain within the designated destination directory. However, the implementation used os.path.commonprefix() for this validation, which is fundamentally unsuitable for path security checks.

The os.path.commonprefix() function operates on strings at the character level, not on path components. This means it will incorrectly identify /home/user_data and /home/user as having a common prefix of /home/user, even though /home/user_data is actually a sibling directory rather than a subdirectory of /home/user. An attacker can craft a malicious tarball with entries that exploit this behavior to write files to directories that share a common character prefix with the intended destination.

Root Cause

The root cause is the use of os.path.commonprefix() instead of os.path.commonpath() for directory containment validation. While both functions find common prefixes, commonprefix() operates on raw strings character-by-character, whereas commonpath() properly handles path semantics and validates based on actual directory components. This distinction is critical for security-sensitive path validation operations.

Attack Vector

The attack vector is network-based, requiring an attacker to supply a malicious tarball to a system using vulnerable versions of dbt-common. The attacker crafts a tarball containing files with carefully constructed paths that exploit the commonprefix() validation flaw. When the tarball is extracted, files are written to sibling directories with matching name prefixes, bypassing the intended directory containment check.

python
def safe_extract(tarball: tarfile.TarFile, path: str = ".") -> None:
    """
    Fix for CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

    Uses os.path.commonpath() instead of commonprefix() to prevent path traversal
    via sibling directories with matching prefixes (CVE-2026-1703).
    """

    def _is_within_directory(directory, target):
        abs_directory = os.path.abspath(directory)
        abs_target = os.path.abspath(target)
        try:
            prefix = os.path.commonpath([abs_directory, abs_target])
            return prefix == abs_directory
        except ValueError:
            # Captures the case of different drives on Windows so it fails safely
            return False

    # for py >= 3.12
    if hasattr(tarfile, "data_filter"):

Source: GitHub Commit Update

Detection Methods for CVE-2026-29790

Indicators of Compromise

  • Unexpected files appearing in directories adjacent to legitimate dbt extraction locations
  • Files with unusual names in sibling directories that share common name prefixes with expected extraction paths
  • Modification timestamps on configuration files or code in directories near dbt working directories that don't align with normal operations

Detection Strategies

  • Monitor file system activity during tarball extraction operations for writes outside expected directories
  • Implement file integrity monitoring on critical directories adjacent to dbt working directories
  • Review application logs for tarball extraction events and correlate with unexpected file creation events

Monitoring Recommendations

  • Enable audit logging for file creation events in directories containing dbt installations
  • Configure alerts for any file writes to sensitive directories during package installation or update operations
  • Deploy SentinelOne endpoint protection to detect and block path traversal exploitation attempts in real-time

How to Mitigate CVE-2026-29790

Immediate Actions Required

  • Upgrade dbt-common to version 1.34.2 or 1.37.3 or later immediately
  • Review file systems for any unexpected files in directories adjacent to dbt extraction paths
  • Audit tarball sources to ensure they originate from trusted repositories
  • Temporarily disable automatic tarball extraction if patching cannot be immediately performed

Patch Information

The vulnerability has been patched in dbt-common versions 1.34.2 and 1.37.3. The fix replaces os.path.commonprefix() with os.path.commonpath() for proper path component-based validation. The patch also adds error handling for Windows edge cases involving different drive letters. For detailed patch information, see the GitHub Commit Update and GitHub Security Advisory.

Workarounds

  • Validate all tarball archives manually before extraction using tools that properly check for path traversal entries
  • Restrict tarball extraction to isolated directories or sandboxed environments
  • Implement application-level monitoring to detect and block extraction attempts that target parent or sibling directories
bash
# Upgrade dbt-common to patched version
pip install --upgrade dbt-common>=1.37.3

# Verify installed version
pip show dbt-common | grep Version

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechDbt

  • SeverityLOW

  • CVSS Score2.0

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:L/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
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory

  • GitHub Pull Request #13777
  • Related CVEs
  • CVE-2026-39382: dbt GitHub Actions RCE 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