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.
In melange versions 0.46.0 through 0.66.0, melange initramfs can log credentials embedded in APK repository and keyring URLs at the default log level. Starting in 0.46.1, melange source get can also log credentials embedded in Git checkout URLs and expose credentials in clone error messages. Anyone who can read the resulting output, including public CI logs, may obtain the credentials. This issue is fixed in melange 0.66.1.
In melange versions 0.46.0 through 0.66.0, melange initramfs can log credentials embedded in APK repository and keyring URLs at the default log level. Starting in 0.46.1, melange source get can also log credentials embedded in Git checkout URLs and expose credentials in clone error messages. Anyone who can read the resulting output, including public CI logs, may obtain the credentials. This issue is fixed in melange 0.66.1.
apko versions before 1.5.6 and melange versions before 0.66.1 can expose HTTP Basic Authentication credentials embedded in APK repository URLs. Affected builds can write usernames and passwords in cleartext to logs and error messages, including at the default log level. apko can also expose these credentials in package and index cache directory names and exported trace spans. Anyone with access to this output may obtain the credentials. The earlier fix for CVE-2024-36127 redacted repository URLs during YAML serialization, leaving these other exposure paths open.