# CVE-2026-24843: melange QEMU runner could write files outside workspace directory

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H`
- 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.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-02-03T23:47:29.000Z
- Modified: 2026-09-10T03:50:59.695Z
- Also known as: GHSA-qxx2-7h4c-83f4, GO-2026-4407
- Related: CGA-9gm7-5vmq-85jv
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

melange allows users to build apk packages using declarative pipelines. In version 0.11.3 to before 0.40.3, an attacker who can influence the tar stream from a QEMU guest VM could write files outside the intended workspace directory on the host. The retrieveWorkspace function extracts tar entries without validating that paths stay within the workspace, allowing path traversal via ../ sequences. This issue has been patched in version 0.40.3.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/chainguard-dev/melange/security/advisories/GHSA-qxx2-7h4c-83f4> (advisory, patch, vendor-advisory, web)
- <https://github.com/chainguard-dev/melange/commit/6e243d0d46699f837d7c392397a694d2bcc7612b> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-24843> (advisory)
- <https://github.com/chainguard-dev/melange> (package)

## Sources

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

---

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