melange pipeline working-directory could allow command injection
cve-program · CVE-2026-24844
Publishedmelange 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.
Read the publisher's advisoryeuvd · EUVD-2026-5372
Publishedmelange 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.
Read the publisher's advisorynvd · CVE-2026-24844
Publishedmelange 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.
Read the publisher's advisoryosv · GHSA-vqqr-rmpc-hhg2
PublishedAn 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.
Read the publisher's advisoryosv · GO-2026-4408
Publishedmelange pipeline working-directory could allow command injection in chainguard.dev/melange
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-24844 · CVE overview and exploitation status
cve-program · CVE-2026-24844
- https://github.com/chainguard-dev/melange/security/advisories/GHSA-vqqr-rmpc-hhg2
- https://github.com/chainguard-dev/melange/commit/e51ca30cfb63178f5a86997d23d3fff0359fa6c8
euvd · EUVD-2026-5372
- https://github.com/chainguard-dev/melange/security/advisories/GHSA-vqqr-rmpc-hhg2
- https://github.com/chainguard-dev/melange/commit/e51ca30cfb63178f5a86997d23d3fff0359fa6c8
nvd · CVE-2026-24844
- https://github.com/chainguard-dev/melange/commit/e51ca30cfb63178f5a86997d23d3fff0359fa6c8
- https://github.com/chainguard-dev/melange/security/advisories/GHSA-vqqr-rmpc-hhg2
osv · GHSA-vqqr-rmpc-hhg2
- https://github.com/chainguard-dev/melange/security/advisories/GHSA-vqqr-rmpc-hhg2
- https://nvd.nist.gov/vuln/detail/CVE-2026-24844
- https://github.com/chainguard-dev/melange/commit/e51ca30cfb63178f5a86997d23d3fff0359fa6c8
- https://github.com/chainguard-dev/melange
osv · GO-2026-4408
Related changes
Linked by CVE identifierNo related changes are available here.