CVE-2026-25143 Details
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.
A vulnerability in the Melange package's patch pipeline allows for arbitrary command execution on the build host. This issue is present in versions 0.10.0 prior to 0.40.3. The vulnerability arises because the patch pipeline in 'pkg/build/pipelines/patch.yaml' improperly embeds input-derived values into shell scripts, lacking adequate quoting and validation. This oversight enables the injection of shell metacharacters that can escape their intended context. The flaw affects the built-in patch pipeline, which can be accessed through 'melange build' and 'melange license-check' operations. An attacker capable of manipulating patch-related inputs, such as through pull request-driven CI, build-as-a-service, or by altering Melange configurations, could exploit this vulnerability to execute arbitrary commands with the privileges of the Melange build process.
Users can upgrade to Melange version 0.40.5, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| chainguard melange | >= 0.10.0, < 0.40.5 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 18, 2026 | Initial Analysis | [email protected] |
| Feb 4, 2026 | New CVE Received | [email protected] |