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.
References (2)
Core 2
Core References
Vendor Advisory x_refsource_confirm
https://github.com/chainguard-dev/melange/security/advisories/GHSA-qxx2-7h4c-83f4
Scores
CVSS v3
8.2
EPSS
0.0001
EPSS Percentile
0.5%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-22
Status
published
Products (2)
chainguard/melange
0.11.3 - 0.40.5
chainguard.dev/melange
0.11.3 - 0.40.3Go
Published
Feb 04, 2026
Tracked Since
Feb 18, 2026