{"id":"CVE-2026-24844","published":"2026-02-04T19:31:55Z","modified":"2026-02-05T14:33:09Z","title":"melange pipeline working-directory could allow command injection","vendor":"chainguard-dev","product":"melange","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00198,"percentile":0.09725,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/chainguard-dev/melange/security/advisories/GHSA-vqqr-rmpc-hhg2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chainguard-dev/melange/commit/e51ca30cfb63178f5a86997d23d3fff0359fa6c8","tags":["x_refsource_MISC"]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":1.95},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"chainguard-dev","affectedVersions":[{"vendor":"chainguard-dev","product":"melange","versions":[">= 0.3.0, < 0.40.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-05T14:23:15.057025Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"chainguard.dev/melange","vulnerableRanges":[">=0.3.0, <0.40.3"],"patched":["0.40.3"],"from":["GHSA-vqqr-rmpc-hhg2","GO-2026-4408"],"provenance":"source"}],"summary":{"text":"The melange build tool, which builds apk packages from declarative pipelines, has a command injection flaw: when a pipeline's working-directory field uses ${{vars.*}} or ${{inputs.*}} substitutions, the value is embedded into shell scripts without proper quote escaping. An attacker who can supply build input values, but cannot modify the pipeline definition, could execute arbitrary shell commands, which requires local access, low privileges, and a user to take action.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:11Z"},"euvd":{"id":"EUVD-2026-5372","exploited":false,"provenance":"source"}}