CVE-2026-24843
JSON

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 packageVersionsReported by
chainguard-dev melange>= 0.11.3, < 0.40.3CVE List
chainguard.dev/melange (Go)from 0.11.3 before 0.40.3GitHub Advisory Database, Go Vulnerability Database
chainguard melangefrom 0.11.3 before 0.40.5NVD

All scores

GitHub_M8.2high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H
GitHub8.2high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H
NVD8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H

Classification

CWE-22

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

SourceRecordLicence
CVE ListCVE-2026-24843 changed 2026-02-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-qxx2-7h4c-83f4 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4407 changed 2026-02-05CC-BY-4.0
NVDCVE-2026-24843 changed 2026-06-17Public domain