7.8High
CVE-2026-24844melange pipeline working-directory could allow command injection
Description
melange allows users to build apk packages using declarative pipelines. From version 0.3.0 to before 0.40.3, an attacker who can provide build input values, but not modify pipeline definitions, could execute arbitrary shell commands if the pipeline uses ${{vars.*}} or ${{inputs.*}} substitutions in working-directory. The field is embedded into shell scripts without proper quote escaping. This issue has been patched in version 0.40.3.
Weakness (CWE):
CWE-78
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| chainguard | melange | 0.3.0 – ≤ 0.40.5 | |
| chainguard-dev | melange | >= 0.3.0, < 0.40.3 |
References and patches
CPE matches (NVD) (1)
cpe:2.3:a:chainguard:melange:*:*:*:*:*:go:*:*≥ 0.3.0 ≤ 0.40.5