{"id":"CVE-2026-24843","aliases":["CVE-2026-24843","GHSA-qxx2-7h4c-83f4","GO-2026-4407"],"related":["CGA-9gm7-5vmq-85jv"],"kind":"vulnerability","state":"published","title":"melange QEMU runner could write files outside workspace directory","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n**Fix:** Fixed in [6e243d0d](https://github.com/chainguard-dev/melange/commit/6e243d0d46699f837d7c392397a694d2bcc7612b). Merged in release.\n\n**Acknowledgements**\n\nmelange thanks Oleh Konko from [1seal](https://1seal.org/) for discovering and reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"en","text":"melange QEMU runner could write files outside workspace directory in chainguard.dev/melange","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-02-03T23:47:29.000Z","modified":"2026-09-10T03:50:59.695Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H","score":8.4,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 0.11.3, < 0.40.3","status":"affected"}],"vendor":"chainguard-dev","product":"melange","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.11.3","status":"affected","fixed":"0.40.3"}],"ecosystem":"Go","package":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.11.3","status":"affected","fixed":"0.40.3"}],"ecosystem":"Go","package":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","source":"go"},{"ranges":[{"status":"affected","introduced":"0.11.3","fixed":"0.40.5"}],"vendor":"chainguard","product":"melange","cpe":"cpe:2.3:a:chainguard:melange:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/chainguard-dev/melange/security/advisories/GHSA-qxx2-7h4c-83f4","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/chainguard-dev/melange/commit/6e243d0d46699f837d7c392397a694d2bcc7612b","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24843","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/chainguard-dev/melange","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-02-05T14:20:17.614Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-24843","url":"https://www.cve.org/CVERecord?id=CVE-2026-24843","licence":"CVE Terms of Use","modified":"2026-02-05T14:33:15.392Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qxx2-7h4c-83f4","url":"https://github.com/advisories/GHSA-qxx2-7h4c-83f4","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:59.695Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4407","url":"https://pkg.go.dev/vuln/GO-2026-4407","licence":"CC-BY-4.0","modified":"2026-02-05T16:28:56.824Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-24843","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24843","licence":"Public domain","modified":"2026-06-17T10:23:41.390Z"}],"updatedAt":"2026-11-25T22:59:13.494Z","epss":{"score":0.00186,"percentile":0.086,"date":"2026-12-01T12:00:22.000Z"}}