Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-29050: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in chainguard-dev melange

0
Medium
VulnerabilityCVE-2026-29050cvecve-2026-29050cwe-22
Published: Thu Apr 23 2026 (04/23/2026, 23:58:39 UTC)
Source: CVE Database V5
Vendor/Project: chainguard-dev
Product: melange

Description

CVE-2026-29050 is a path traversal vulnerability in chainguard-dev melange versions 0. 32. 0 up to but not including 0. 43. 4. It allows an attacker who can influence a melange configuration file to specify a pipeline step using a path containing '.. /' sequences or an absolute path, escaping the intended pipeline directory. This leads to loading and executing arbitrary YAML pipeline files outside the trusted directory, with shell commands running during the build process. The vulnerability is fixed in version 0. 43.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/24/2026, 00:36:58 UTC

Technical Analysis

Melange is a tool for building apk packages using declarative pipelines. In versions from 0.32.0 up to 0.43.4, the function responsible for compiling pipelines did not validate the 'uses' field in pipeline configurations, allowing path traversal via '../' or absolute paths. This flaw permitted attackers controlling configuration files (e.g., in CI or build-as-a-service environments) to cause melange to load and execute arbitrary pipeline YAML files outside the intended directory, leading to execution of shell commands during the build sandbox. The issue was fixed in version 0.43.4 by rejecting absolute paths and '..' sequences and ensuring the resolved path stays within the pipeline directory.

Potential Impact

An attacker able to influence melange configuration files can execute arbitrary shell commands during the build process by causing melange to load and run out-of-tree pipeline files. This bypasses the normal review boundary for pipeline definitions, potentially leading to unauthorized code execution with the privileges of the melange process. The CVSS 3.1 score is 6.1 (medium severity), reflecting local attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, high confidentiality impact, low integrity impact, and no availability impact.

Mitigation Recommendations

A fix is available in melange version 0.43.4, which rejects 'uses' values that are absolute paths or contain '..' sequences and verifies that resolved paths remain within the pipeline directory. Until upgrading, users should only run 'melange build' on configuration files from trusted sources. In CI systems that build user-supplied melange configurations, manual review of 'pipeline[].uses' values should be enforced to reject any containing '..' or leading '/'. Patch status is not explicitly confirmed beyond the fix in version 0.43.4; users should upgrade to this version or later.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-03T17:50:11.243Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69eab7a187115cfb68850e18

Added to database: 4/24/2026, 12:21:53 AM

Last enriched: 4/24/2026, 12:36:58 AM

Last updated: 4/24/2026, 6:06:01 AM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses