7.8

CVE-2026-25143: chainguard-dev melange OS Command Injection

CVSS: 7.8v3.1HighAnalyzed
AliasesCGA-85xc-qww9-jqr9CGA-86wj-4vjh-4qh9GHSA-rf4g-89h5-crcr
Published 04-02-2026Last modified 05-02-2026

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.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.20%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2 · Related 3

Timeline

  1. 04-02-2026
    PublishedVulnerability first disclosed.
  2. 05-02-2026
    Last 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

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

19-09-202619-10-2026
EPSS score
0.20%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard3 products
  • cg< 0.2.201-r0
  • wolfictl< 0.39.0-r1
  • melange≥ 0.10.0, < 0.40.5
Chainguard-dev1 product
Chainguard.dev1 product
  • melange≥ 0.10.0, < 0.40.3
Wolfi1 product
  • wolfictl< 0.39.0-r1

4 vendors · 6 products

References

5 links