What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: chainguard-dev melange 0.40.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-24843 or the next vulnerability affects your stack