melange pipeline working-directory could allow command injection
Date: 2026-02
Affected: go/chainguard.dev/melange
Attack vector: command-injection
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2026-24844
CWE: CWE-78
CVSS: 7.9 (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N)

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. **Fix:** Fixed with [e51ca30c](https://github.com/chainguard-dev/melange/commit/e51ca30cfb63178f5a86997d23d3fff0359fa6c8), Released. **Acknowledgements** melange thanks Oleh Konko from [1seal](https://1seal.org/) for discovering and reporting this issue.


Mitigations:

Architectural layers (MAESTRO):