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
    • 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-29050

CVE-2026-29050: Chainguard Melange Path Traversal Flaw

CVE-2026-29050 is a path traversal vulnerability in Chainguard Melange that allows attackers to escape pipeline directories and execute arbitrary commands. This article covers technical details, affected versions, and mitigation.

Published: April 30, 2026

CVE-2026-29050 Overview

CVE-2026-29050 is a path traversal vulnerability in Chainguard Melange, a tool that allows users to build apk packages using declarative pipelines. Starting in version 0.32.0 and prior to version 0.43.4, an attacker who can influence a melange configuration file—for example through pull-request-driven CI or build-as-a-service scenarios—could set pipeline[].uses to a value containing ../ sequences or an absolute path to escape the pipeline directory and read arbitrary YAML-parseable files visible to the melange process.

Critical Impact

This vulnerability enables arbitrary file read and command execution during build processes, bypassing the review boundary that normally covers in-tree pipeline definitions.

Affected Products

  • Chainguard Melange versions 0.32.0 to 0.43.3

Discovery Timeline

  • 2026-04-24 - CVE CVE-2026-29050 published to NVD
  • 2026-04-27 - Last updated in NVD database

Technical Details for CVE-2026-29050

Vulnerability Analysis

The vulnerability exists in the (*Compiled).compilePipeline function located in pkg/build/compile.go. This function handles the processing of pipeline definitions specified in melange configuration files. When processing the pipeline[].uses directive, the function passed the user-supplied value directly to filepath.Join(pipelineDir, uses + ".yaml") without performing any validation on the input.

This lack of input validation meant that path traversal sequences such as ../ or absolute paths could be injected, allowing the resolved file path to escape the intended --pipeline-dir boundaries and access arbitrary YAML files on the filesystem that are visible to the melange process.

The security implications are compounded by the fact that loaded files are subsequently interpreted as melange pipelines, and their runs: block content is executed via /bin/sh -c within the build sandbox. This creates a pathway for attackers to execute arbitrary shell commands sourced from out-of-tree files during the build process, effectively bypassing the security review boundary that would normally gate in-tree pipeline definitions.

Root Cause

The root cause is an improper input validation issue (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) in the pipeline compilation logic. The uses parameter was consumed without sanitization, allowing directory traversal sequences to manipulate the final file path resolution.

Attack Vector

An attacker with the ability to influence a melange configuration file—such as through a pull request in a CI/CD environment or via a build-as-a-service platform—can craft a malicious pipeline[].uses value. By including ../ sequences or an absolute path prefix, the attacker can direct the build process to load and execute a YAML file from outside the designated pipeline directory.

This attack vector is particularly dangerous in automated CI systems where user-supplied melange configurations are processed without manual review. The attacker can leverage existing YAML files on the build system or place malicious files in predictable locations to achieve command execution within the build sandbox context.

Detection Methods for CVE-2026-29050

Indicators of Compromise

  • Melange configuration files containing pipeline[].uses values with ../ sequences
  • Melange configuration files with pipeline[].uses values starting with / (absolute paths)
  • Unexpected file access patterns during melange build processes
  • Anomalous shell command execution within build sandboxes

Detection Strategies

  • Implement static analysis of melange configuration files to detect path traversal patterns in pipeline[].uses values
  • Monitor build process file access for reads outside designated pipeline directories
  • Enable audit logging for melange build operations to capture pipeline loading events
  • Use file integrity monitoring on build systems to detect unauthorized YAML file modifications

Monitoring Recommendations

  • Review CI/CD pipeline logs for melange builds processing untrusted configuration sources
  • Implement alerting for melange configuration changes that include path-like characters in uses directives
  • Audit existing melange configurations for potentially exploitable patterns

How to Mitigate CVE-2026-29050

Immediate Actions Required

  • Upgrade to melange version 0.43.4 or later immediately
  • Review all melange configuration files for suspicious pipeline[].uses values containing .. or leading /
  • Restrict melange build execution to trusted configuration sources only
  • Implement manual review gates for user-supplied melange configurations in CI systems

Patch Information

The vulnerability is fixed in melange v0.43.4 via commit 5829ca4. The fix implements two key validation measures: it rejects uses values that are absolute paths or contain .. sequences, and it verifies using filepath.Rel after filepath.Clean that the resolved target path remains within the designated pipeline directory.

For more details, refer to the GitHub Security Advisory.

Workarounds

  • Only run melange build against configuration files from trusted, verified sources
  • In CI systems that build user-supplied melange configs, implement mandatory manual review of pipeline[].uses values before build execution
  • Reject any configurations containing .. sequences or leading / in pipeline[].uses values
  • Consider implementing a pre-build validation script to scan configuration files for path traversal patterns
bash
# Example pre-build validation to detect path traversal attempts
grep -rE 'uses:\s*["\\x27]?(\.\.|/)' melange.yaml && echo "BLOCKED: Path traversal detected" && exit 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/TechChainguard Melange

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-29051: Chainguard Melange Path Traversal Flaw

  • CVE-2026-29049: Chainguard Melange DoS 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