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

Published Feb 3, 2026
·
Updated

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.

Other sources

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.

— MITRE

Affected Software

2 affected componentsFixes available
go/chainguard.dev/melange>=0.11.3<0.40.3
0.40.3
chainguard Melange Go>=0.11.3<0.40.5

Event History

Feb 3, 2026
Advisory Published
via GitHub·11:47 PM
Data Sourced
via GitHub·11:47 PM
DescriptionSeverityWeaknessAffected Software
Feb 4, 2026
CVE Published
via MITRE·07:31 PM
Data Sourced
via MITRE·07:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
RemedyAffected Software
Nov 23, 58106
Event
via FIRST·06:02 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-24843?

The severity of CVE-2026-24843 is categorized as high due to the potential for unauthorized file writes on the host.

2

How can I fix CVE-2026-24843?

To fix CVE-2026-24843, upgrade the melange package to version 0.40.3 or later.

3

Who is affected by CVE-2026-24843?

Users of the melange package versions between 0.11.3 and 0.40.3 are affected by CVE-2026-24843.

4

What type of attack does CVE-2026-24843 enable?

CVE-2026-24843 enables an attacker to write files to arbitrary locations on the host system from a compromised QEMU guest VM.

5

What function in melange is associated with CVE-2026-24843?

The `retrieveWorkspace` function in melange is associated with CVE-2026-24843, as it does not properly validate file paths during tar extraction.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203