Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-25143— melange affected by potential host command execution via license-check YAML mode patch pipeline

CVSS 7.8 · High EPSS 0.01% · P1
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-25143

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
melange affected by potential host command execution via license-check YAML mode patch pipeline
Source: NVD (National Vulnerability Database)
Vulnerability Description
melange allows users to build apk packages using declarative pipelines. From version 0.10.0 to before 0.40.3, an attacker who can influence inputs to the patch pipeline could execute arbitrary shell commands on the build host. The patch pipeline in pkg/build/pipelines/patch.yaml embeds input-derived values (series paths, patch filenames, and numeric parameters) into shell scripts without proper quoting or validation, allowing shell metacharacters to break out of their intended context. The vulnerability affects the built-in patch pipeline which can be invoked through melange build and melange license-check operations. An attacker who can control patch-related inputs (e.g., through pull request-driven CI, build-as-a-service, or by influencing melange configurations) can inject shell metacharacters such as backticks, command substitutions $(…), semicolons, pipes, or redirections to execute arbitrary commands with the privileges of the melange build process. This issue has been patched in version 0.40.3.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: NVD (National Vulnerability Database)
Vulnerability Title
melange 操作系统命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
melange是Chainguard开源的一个从源代码构建APK的软件。 melange 0.10.0版本至0.40.3之前版本存在操作系统命令注入漏洞,该漏洞源于补丁管道将输入派生的值嵌入shell脚本时未正确引用或验证,可能导致执行任意shell命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
chainguard-devmelange >= 0.10.0, < 0.40.3 -

II. Public POCs for CVE-2026-25143

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-25143

登录查看更多情报信息。

Same Patch Batch · chainguard-dev · 2026-02-04 · 7 CVEs total

CVE-2026-248438.2 HIGHmelange QEMU runner could write files outside workspace directory
CVE-2026-248447.8 HIGHmelange pipeline working-directory could allow command injection
CVE-2026-251217.5 HIGHapko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside
CVE-2026-251407.5 HIGHapko affected by potential unbounded resource consumption in expandapk.ExpandApk on attack
CVE-2026-251225.5 MEDIUMapko is vulnerable to unbounded resource consumption in expandapk.Split on attacker-contro
CVE-2026-251455.5 MEDIUMmelange has a path traversal in license-path which allows reading files outside workspace

IV. Related Vulnerabilities

V. Comments for CVE-2026-25143

No comments yet


Leave a comment