
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-24843 is a path traversal vulnerability in Chainguard's melange, a tool for building APK packages using declarative pipelines. The flaw exists in the retrieveWorkspace function of the QEMU runner, which extracts tar entries from a QEMU guest VM without validating that paths remain within the intended workspace directory on the host. It affects melange versions 0.11.3 through 0.40.4 and was disclosed on February 3, 2026, by security researcher Oleh Konko from 1seal. The vulnerability carries a CVSS v3.1 base score of 8.2 (High) (Github Advisory, Melange Advisory).
The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). The retrieveWorkspace function in pkg/build/build.go processes tar entries received from a QEMU guest VM and writes them to the host filesystem without sanitizing entry names for ../ sequences, absolute paths, null bytes, or malicious symlink/hardlink targets. An attacker who can influence the tar stream — for example, by compromising the QEMU guest VM or injecting into the build pipeline — can craft tar entries with traversal sequences (e.g., ../../etc/passwd) to write arbitrary files anywhere on the host. The fix (commit 6e243d0d) introduced an isValidPath() function that validates all tar entry names and link targets before extraction, rejecting absolute paths, ../ traversal, and null bytes (Melange Advisory, Fix Commit).
A successful exploit allows an attacker to write, modify, or delete arbitrary files on the host system outside the designated workspace directory. Specific targets noted in the fix commit include system binaries (e.g., /usr/bin/curl), configuration files (e.g., /etc files), and other host-level resources. When melange is run in privileged container contexts — common in CI/CD build environments — this vulnerability can escalate to a full node escape, enabling lateral movement across the build infrastructure. Confidentiality impact is rated None (the vulnerability enables writes, not reads), while integrity and availability impacts are both rated High (Github Advisory, Fix Commit).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.008% (1st percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires the attacker to have influence over the tar stream produced by a QEMU guest VM, which limits the attack surface to scenarios where the guest VM or the build pipeline has been compromised (Github Advisory).
retrieveWorkspace function.../../etc/cron.d/backdoor, ../../usr/bin/curl, or absolute paths like /etc/passwd. Also craft malicious symlink or hardlink entries pointing outside the workspace.retrieveWorkspace, which will extract the tar entries without path validation (in vulnerable versions), writing attacker-controlled files to arbitrary host locations./etc/, /usr/bin/, /usr/local/bin/, or other system directories) with timestamps matching build job execution times; modified system binaries or configuration files with unexpected checksums.invalid tar entry path or path traversal detected); absence of such errors in vulnerable versions despite anomalous file writes./etc/cron.d/ or /etc/cron.daily/ coinciding with build activity.Upgrade Chainguard melange to version 0.40.5 or later, which includes the fix introduced in commit 6e243d0d. The GitHub Advisory Database initially listed 0.40.3 as the first patched version, but the Feedly data confirms 0.40.5 as the definitive patched release for affected versions 0.11.3 through 0.40.4. As a workaround where immediate upgrade is not possible, ensure that QEMU guest VMs used in melange builds are fully isolated and sourced only from trusted, verified images to reduce the risk of tar stream manipulation (Github Advisory, Melange Advisory).
The vulnerability was reported by Oleh Konko from security firm 1seal and acknowledged by the Chainguard melange team. Brief mentions appeared on Mastodon and Bluesky via The Hacker Wire shortly after disclosure. Coverage was also noted in German Linux security news (pro-linux.de) and Linux compatibility news aggregators in the days following the advisory publication (Github Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."