Findings

CVE-2026-29051

melange allows users to build apk packages using declarative pipelines.

Published Apr 24, 2026 · updated Jun 17, 2026 · chainguard melange

melange allows users to build apk packages using declarative pipelines. Starting in version 0.32.0 and prior to version 0.43.4, (opt-in flag, also usable via ) constructs output file paths by joining with the and values read from the control file of the APK being linted. In affected versions these values were not validated for path separators or sequences, so an attacker who can supply an APK to a melange-based lint/build pipeline (e.g. CI that lints third-party APKs, or build-as-a-service) could cause melange to write to an arbitrary path reachable by the melange process. The written file is a JSON lint report whose content is partially attacker-influenced. There is no direct code-execution path, but the write can clobber other JSON artifacts on the filesystem. The issue only affects deployments that explicitly pass ; the flag is off by default. The issue is fixed in melange v0.43.4 by validating and for , , and before path construction in (commit 84f3b45). As a workaround, do not pass when linting or building APKs whose contents are not fully trusted. Running melange as a low-privileged user and confining writes to an isolated directory also limits impact.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Apr 24, 2026 · NIST NVD

    Detected

    melange allows users to build apk packages using declarative pipelines. Starting in version 0.32.0 and prior to version 0.43.4, (opt-in flag, also usable via ) constructs output file paths by joining with the and values read from the control file of the APK being linted. In affected versions these values were not validated for path separators or sequences, so an attacker who can supply an APK to a

  2. Jun 17, 2026 · NIST NVD

    Updated

    melange allows users to build apk packages using declarative pipelines. Starting in version 0.32.0 and prior to version 0.43.4, (opt-in flag, also usable via ) constructs output file paths by joining with the and values read from the control file of the APK being linted. In affected versions these values were not validated for path separators or sequences, so an attacker who can supply an APK to a

Affected

  • cpe chainguard/melangeversion unspecified

Sources

  • CVE.orgVulnerability recordCVE-2026-29051

    Official CVE identifier

    cve.org
  • NIST NVDVulnerability recordCVE-2026-29051

    melange allows users to build apk packages using declarative pipelines. Starting in version 0.32.0 and prior to version 0.43.4, (opt-in flag, also usable via ) constructs output file paths by joining `--o

    nvd.nist.gov

References