CVE-2026-25143
HIGH 7.8CVSS 3.1melange affected by potential host command execution via license-check YAML mode patch pipeline
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.
- Published
- 4 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- GHSA-rf4g-89h5-crcrGO-2026-4412
- Sources
- NVDJSONOSV GHSA-rf4g-89h5-crcrJSONOSV GO-2026-4412JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | chainguard | melangecpe:2.3:a:chainguard:melange:*:*:*:*:*:go:*:* |
>= 0.10.0, < 0.40.5 | 0.40.5 |
| OSV | Go | chainguard.dev/melange | >= 0.10.0, < 0.40.3 | 0.40.3 |
References
- https://github.com/chainguard-dev/melange/commit/bd132535cd9f57d4bd39d9ead0633598941af030 · Patch, WEB
- https://github.com/chainguard-dev/melange/security/advisories/GHSA-rf4g-89h5-crcr · Patch, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-25143 · ADVISORY
- https://github.com/chainguard-dev/melange · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 4 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Feb 2026)