{"id":"CVE-2026-24844","aliases":["CVE-2026-24844","GHSA-vqqr-rmpc-hhg2","GO-2026-4408"],"related":["CGA-vxrg-4fv3-hfpf"],"kind":"vulnerability","state":"published","title":"melange pipeline working-directory could allow command injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n**Fix:** Fixed with [e51ca30c](https://github.com/chainguard-dev/melange/commit/e51ca30cfb63178f5a86997d23d3fff0359fa6c8), Released. \n\n**Acknowledgements**\n\nmelange thanks Oleh Konko from [1seal](https://1seal.org/) for discovering and reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"en","text":"melange pipeline working-directory could allow command injection in chainguard.dev/melange","format":"markdown","source":"go"},{"lang":"es","text":"melange permite a los usuarios construir paquetes apk usando pipelines declarativos. Desde la versión 0.3.0 hasta antes de la 0.40.3, un atacante que puede proporcionar valores de entrada de construcción, pero no modificar las definiciones de pipeline, podría ejecutar comandos de shell arbitrarios si el pipeline usa sustituciones ${{vars.*}} o ${{inputs.*}} en working-directory. El campo se incrusta en scripts de shell sin el escape de comillas adecuado. Este problema ha sido parcheado en la versión 0.40.3.","source":"nvd"}],"published":"2026-02-03T23:48:25.000Z","modified":"2026-09-10T03:50:35.870Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.9,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":">= 0.3.0, < 0.40.3","status":"affected"}],"vendor":"chainguard-dev","product":"melange","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.3.0","status":"affected","fixed":"0.40.3"}],"ecosystem":"Go","package":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.0","status":"affected","fixed":"0.40.3"}],"ecosystem":"Go","package":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","source":"go"},{"ranges":[{"status":"affected","introduced":"0.3.0","lastAffected":"0.40.5"}],"vendor":"chainguard","product":"melange","cpe":"cpe:2.3:a:chainguard:melange:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/chainguard-dev/melange/security/advisories/GHSA-vqqr-rmpc-hhg2","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/chainguard-dev/melange/commit/e51ca30cfb63178f5a86997d23d3fff0359fa6c8","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24844","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/chainguard-dev/melange","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-02-05T14:23:15.057Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-24844","url":"https://www.cve.org/CVERecord?id=CVE-2026-24844","licence":"CVE Terms of Use","modified":"2026-02-05T14:33:09.866Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vqqr-rmpc-hhg2","url":"https://github.com/advisories/GHSA-vqqr-rmpc-hhg2","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:35.870Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4408","url":"https://pkg.go.dev/vuln/GO-2026-4408","licence":"CC-BY-4.0","modified":"2026-02-05T16:28:56.976Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-24844","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24844","licence":"Public domain","modified":"2026-06-17T10:23:41.497Z"}],"updatedAt":"2026-11-25T22:59:13.494Z","epss":{"score":0.00198,"percentile":0.10012,"date":"2026-12-01T12:00:22.000Z"}}