{"cve":"CVE-2026-25143","nvd":{"published":"2026-02-04T20:16:06.227","modified":"2026-06-17T10:24:10.980","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-78"],"references":["https://github.com/chainguard-dev/melange/commit/bd132535cd9f57d4bd39d9ead0633598941af030","https://github.com/chainguard-dev/melange/security/advisories/GHSA-rf4g-89h5-crcr"],"products":["chainguard:melange"],"source":"nvd","synced_at":"2026-10-19T22:22:27.261130201+00:00"},"epss":{"cve":"CVE-2026-25143","score":0.00199,"percentile":0.09757,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rf4g-89h5-crcr","url":"https://osv.dev/vulnerability/GHSA-rf4g-89h5-crcr","summary":"melange affected by potential host command execution via license-check YAML mode patch pipeline ","modified":"2026-09-10T03:50:35.668507313Z","packages":[{"ecosystem":"Go","name":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","ranges":[">=0.10.0 <0.40.3"],"fixed":["0.40.3"]}]},{"id":"GO-2026-4412","url":"https://osv.dev/vulnerability/GO-2026-4412","summary":"melange affected by potential host command execution via license-check YAML mode patch pipeline in chainguard.dev/melange","modified":"2026-02-05T16:28:56.679977Z","packages":[{"ecosystem":"Go","name":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","ranges":[">=0.10.0 <0.40.3"],"fixed":["0.40.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}