CVE-2026-25143: chainguard-dev melange OS Command Injection
Vulnerability summary
CVE-2026-25143 is a high (CVSS 7.8) OS Command Injection vulnerability in chainguard-dev melange. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 9.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 3Timeline
- 04-02-2026PublishedVulnerability first disclosed.
- 05-02-2026Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- OSV · WolfiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · GoEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
10%
Versus all other CVEs
30-day change
+0.02 pp
From 0.18% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard3 products
- cg< 0.2.201-r0
- wolfictl< 0.39.0-r1
- melange≥ 0.10.0, < 0.40.5
Chainguard-dev1 product
- melange≥ 0.10.0, < 0.40.3
Chainguard.dev1 product
- melange≥ 0.10.0, < 0.40.3
Wolfi1 product
- wolfictl< 0.39.0-r1
4 vendors · 6 products
References
5 links- github.com/chainguard-dev/melange/security/advisories/GHSA-rf4g-89h5-crcrX Refsource CONFIRMAdvisoryWEBPatchVendor Advisory
- github.com/chainguard-dev/melange/commit/bd132535cd9f57d4bd39d9ead0633598941af030X Refsource MISCFIXWEBPatch