8.2high
melange QEMU runner could write files outside workspace directory
- Severity
- 8.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.19% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qxx2-7h4c-83f4GO-2026-4407
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| chainguard-dev melange | >= 0.11.3, < 0.40.3 | CVE List |
| chainguard.dev/melange (Go) | from 0.11.3 before 0.40.3 | GitHub Advisory Database, Go Vulnerability Database |
| chainguard melange | from 0.11.3 before 0.40.5 | NVD |
All scores
| GitHub_M | 8.2high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H |
| NVD | 8.4high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
Fix: Fixed in 6e243d0d. Merged in release.
Acknowledgements
melange thanks Oleh Konko from 1seal for discovering and reporting this issue.
Go Vulnerability Database
melange QEMU runner could write files outside workspace directory in chainguard.dev/melange
NVD (es)
melange permite a los usuarios construir paquetes apk utilizando pipelines declarativos. En las versiones 0.11.3 hasta antes de la 0.40.3, un atacante que puede influir en el flujo tar desde una VM invitada de QEMU podría escribir archivos fuera del directorio de espacio de trabajo previsto en el host. La función retrieveWorkspace extrae entradas tar sin validar que las rutas permanezcan dentro del espacio de trabajo, permitiendo el salto de ruta a través de secuencias ../. Este problema ha sido parcheado en la versión 0.40.3.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-24843 changed 2026-02-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qxx2-7h4c-83f4 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4407 changed 2026-02-05 | CC-BY-4.0 |
| NVD | CVE-2026-24843 changed 2026-06-17 | Public domain |