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

CVE-2026-25145: Melange Path Traversal Vulnerability

CVE-2026-25145 is a path traversal vulnerability in Melange that allows attackers to read arbitrary files from the host system. This article covers technical details, affected versions, impact, and mitigation.

Published: February 6, 2026

CVE-2026-25145 Overview

CVE-2026-25145 is a Path Traversal vulnerability affecting Melange, an open-source tool that allows users to build apk packages using declarative pipelines. The vulnerability exists in the LicensingInfos function within pkg/config/config.go, which reads license files specified in copyright[].license-path without validating that paths remain within the workspace directory. This allows attackers to use ../ sequences to traverse outside the intended directory and read arbitrary files from the host system.

An attacker who can influence a melange configuration file—such as through pull request-driven CI workflows or build-as-a-service scenarios—could exploit this vulnerability to exfiltrate sensitive data. The contents of traversed files are embedded into the generated SBOM (Software Bill of Materials) as license text, effectively using build artifacts as a data exfiltration channel.

Critical Impact

Attackers can read arbitrary files from the host system and exfiltrate sensitive data through build artifacts by manipulating melange configuration files.

Affected Products

  • Melange versions 0.14.0 to before 0.40.3

Discovery Timeline

  • 2026-02-04 - CVE-2026-25145 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2026-25145

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as Path Traversal. The core issue stems from insufficient input validation when processing license file paths specified in melange configuration files.

When melange processes a build configuration, it reads license files to include their contents in the generated SBOM. The LicensingInfos function accepts file paths from the copyright[].license-path configuration parameter without performing any validation to ensure the specified path remains within the workspace directory boundary. This oversight allows an attacker to craft a malicious configuration file containing path traversal sequences that escape the intended directory.

The attack is particularly dangerous in CI/CD environments where untrusted code contributions (such as pull requests) can modify build configuration files. Since the exfiltrated data is embedded in the SBOM output, an attacker could retrieve sensitive files like /etc/passwd, SSH keys, environment files containing secrets, or other confidential data simply by examining the build artifacts.

Root Cause

The root cause is missing path validation in the LicensingInfos function located in pkg/config/config.go. The function reads license files from paths specified in the configuration without sanitizing or validating that the resolved path stays within the workspace directory. This allows relative path sequences like ../ to traverse up the directory tree and access files outside the intended scope.

Attack Vector

The attack requires local access and user interaction—an attacker must be able to influence a melange configuration file that is subsequently processed by the build system. This commonly occurs in:

  1. Pull request-driven CI pipelines: An attacker submits a PR containing a malicious melange configuration with path traversal sequences
  2. Build-as-a-service platforms: Untrusted users provide configuration files to a shared build service
  3. Supply chain attacks: Compromised dependencies include malicious build configurations

When the build runs, the path traversal payload causes sensitive files to be read and their contents embedded in the SBOM output. The attacker then retrieves the build artifacts to extract the exfiltrated data.

For example, a malicious copyright[].license-path value like ../../../etc/passwd would cause the build to read the system password file and embed its contents as "license text" in the generated SBOM.

Detection Methods for CVE-2026-25145

Indicators of Compromise

  • Melange configuration files containing ../ sequences in copyright[].license-path values
  • SBOM outputs containing unexpected content that resembles system files rather than license text
  • Build logs showing file access to paths outside the workspace directory
  • Unusual patterns in configuration file changes, especially from external contributors

Detection Strategies

  • Implement static analysis scanning on configuration files to detect path traversal patterns before build execution
  • Monitor build artifact SBOMs for anomalous content sizes or patterns inconsistent with legitimate license files
  • Use file integrity monitoring on build systems to detect access to sensitive files outside workspace directories
  • Review pull requests and configuration changes for suspicious path references

Monitoring Recommendations

  • Enable detailed audit logging on build systems to track file access operations
  • Implement alerts for file reads outside designated workspace directories during build processes
  • Monitor for configuration changes that modify license-path values, especially those containing relative path components
  • Track SBOM file sizes and content patterns to identify potential data exfiltration attempts

How to Mitigate CVE-2026-25145

Immediate Actions Required

  • Upgrade melange to version 0.40.3 or later immediately
  • Audit existing melange configuration files for any suspicious path traversal sequences in copyright[].license-path values
  • Review recent build artifacts and SBOMs for signs of data exfiltration
  • Restrict who can modify melange configuration files in CI/CD pipelines

Patch Information

The vulnerability has been patched in melange version 0.40.3. The fix implements proper path validation to ensure that license file paths cannot traverse outside the workspace directory. Organizations should upgrade to this version or later to remediate the vulnerability.

For detailed information about the patch, see the GitHub Commit and the GitHub Security Advisory GHSA-2w4f-9fgg-q2v9.

Workarounds

  • Implement pre-build validation scripts that scan configuration files and reject any containing ../ or other path traversal sequences
  • Run melange builds in isolated containers with minimal file system access to limit exposure
  • Use read-only bind mounts for sensitive directories to prevent access even if path traversal is attempted
  • Restrict build system permissions to prevent access to sensitive files outside the workspace
bash
# Example: Pre-build configuration validation
# Check for path traversal attempts in melange config before building
grep -r "\.\.\/" melange.yaml && echo "ERROR: 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/TechMelange

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-2w4f-9fgg-q2v9
  • Related CVEs
  • CVE-2026-24843: Melange Path Traversal Vulnerability

  • CVE-2026-24844: Melange Build System RCE Vulnerability

  • CVE-2026-25143: melange RCE Vulnerability via Patch Pipeline
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