# CVE-2026-24844: melange pipeline working-directory could allow command injection

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-02-03T23:48:25.000Z
- Modified: 2026-09-10T03:50:35.870Z
- Also known as: GHSA-vqqr-rmpc-hhg2, GO-2026-4408
- Related: CGA-vxrg-4fv3-hfpf
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- chainguard-dev melange: >= 0.3.0, < 0.40.3
- chainguard.dev/melange (Go): from 0.3.0 before 0.40.3
- chainguard melange: from 0.3.0 up to 0.40.5

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.9 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/chainguard-dev/melange/security/advisories/GHSA-vqqr-rmpc-hhg2> (advisory, patch, vendor-advisory, web)
- <https://github.com/chainguard-dev/melange/commit/e51ca30cfb63178f5a86997d23d3fff0359fa6c8> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-24844> (advisory)
- <https://github.com/chainguard-dev/melange> (package)

## Sources

- CVE List: [CVE-2026-24844](https://www.cve.org/CVERecord?id=CVE-2026-24844), CVE Terms of Use, modified 2026-02-05
- GitHub Advisory Database: [GHSA-vqqr-rmpc-hhg2](https://github.com/advisories/GHSA-vqqr-rmpc-hhg2), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-4408](https://pkg.go.dev/vuln/GO-2026-4408), CC-BY-4.0, modified 2026-02-05
- NVD: [CVE-2026-24844](https://nvd.nist.gov/vuln/detail/CVE-2026-24844), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-24844 · Whole record: https://cve.day/CVE-2026-24844.json · Rebuilt by cve.day 2026-11-25T22:59:13.494Z
