{"id":"CVE-2026-24843","published":"2026-02-04T19:31:35Z","modified":"2026-02-05T14:33:15Z","title":"melange QEMU runner could write files outside workspace directory","vendor":"chainguard-dev","product":"melange","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00186,"percentile":0.0839,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/chainguard-dev/melange/security/advisories/GHSA-qxx2-7h4c-83f4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chainguard-dev/melange/commit/6e243d0d46699f837d7c392397a694d2bcc7612b","tags":["x_refsource_MISC"]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":1.68},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"chainguard-dev","affectedVersions":[{"vendor":"chainguard-dev","product":"melange","versions":[">= 0.11.3, < 0.40.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-05T14:20:17.614249Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"chainguard.dev/melange","vulnerableRanges":[">=0.11.3, <0.40.3"],"patched":["0.40.3"],"from":["GHSA-qxx2-7h4c-83f4","GO-2026-4407"],"provenance":"source"}],"summary":{"text":"The melange build tool's QEMU runner, in its retrieveWorkspace function, extracts tar entries from a guest VM without confining paths to the workspace directory, so the flaw sits in how melange handles workspace retrieval from QEMU guests. An attacker who can influence the tar stream from a QEMU guest VM can write files outside the workspace on the host via ../ path traversal, and this requires local access, no authentication, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:48Z"},"euvd":{"id":"EUVD-2026-5373","exploited":false,"provenance":"source"}}