CVE-2026-145143: melange bubblewrap runner allows build layers to expose host files
In melange versions before 0.66.1, the bubblewrap runner can resolve links outside the guest root when extracting build environment layers. This can let build steps read or modify host files from inside the sandbox. In the runner scenario, the build must consume a crafted package signed by a key it trusts. The target file must be on the same filesystem as the temporary directory and linkable by the user running melange. Library callers that pass untrusted layers to LoadImage are also affected. The Docker and QEMU runners are unaffected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.66.1
Event History
Frequently Asked Questions
Which deployments are affected?
Melange versions before 0.66.1 are affected when using the bubblewrap runner. The Docker and QEMU runners are unaffected, and library callers are affected only if they pass untrusted layers to LoadImage.
What must an attacker be able to do to exploit the runner case?
The build must consume a crafted package that is signed by a key trusted by the build. The targeted host file must also be on the same filesystem as melange's temporary directory and be linkable by the user running melange.
What is the impact if exploitation succeeds?
Build steps running inside the bubblewrap sandbox may be able to read or modify host files. This occurs because links in extracted build-environment layers can resolve outside the guest root.