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

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-02-04T00:09:15.000Z
- Modified: 2026-09-10T03:50:35.668Z
- Also known as: GHSA-rf4g-89h5-crcr, GO-2026-4412
- Related: CGA-fc5r-8rq7-8ccc
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- chainguard-dev melange: >= 0.10.0, < 0.40.3
- chainguard.dev/melange (Go): from 0.10.0 before 0.40.3
- chainguard melange: from 0.10.0 before 0.40.5

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/chainguard-dev/melange/security/advisories/GHSA-rf4g-89h5-crcr> (advisory, patch, vendor-advisory, web)
- <https://github.com/chainguard-dev/melange/commit/bd132535cd9f57d4bd39d9ead0633598941af030> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25143> (advisory)
- <https://github.com/chainguard-dev/melange> (package)

## Sources

- CVE List: [CVE-2026-25143](https://www.cve.org/CVERecord?id=CVE-2026-25143), CVE Terms of Use, modified 2026-02-05
- GitHub Advisory Database: [GHSA-rf4g-89h5-crcr](https://github.com/advisories/GHSA-rf4g-89h5-crcr), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-4412](https://pkg.go.dev/vuln/GO-2026-4412), CC-BY-4.0, modified 2026-02-05
- NVD: [CVE-2026-25143](https://nvd.nist.gov/vuln/detail/CVE-2026-25143), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25143 · Whole record: https://cve.day/CVE-2026-25143.json · Rebuilt by cve.day 2026-11-25T22:59:13.496Z
