Skip to main content
← All vulnerabilities
CVE-2026-25145GHSA-2W4F-9FGG-Q2V9GO-2026-4409

melange has a path traversal in license-path which allows reading files outside workspace

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.40.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

melange allows users to build apk packages using declarative pipelines. From version 0.14.0 to before 0.40.3, an attacker who can influence a melange configuration file (e.g., through pull request-driven CI or build-as-a-service scenarios) could read arbitrary files from the host system. The LicensingInfos function in pkg/config/config.go reads license files specified in copyright[].license-path without validating that paths remain within the workspace directory, allowing path traversal via ../ sequences. The contents of the traversed file are embedded into the generated SBOM as license text, enabling exfiltration of sensitive data through build artifacts. This issue has been patched in version 0.40.3.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • chainguard-dev melange

    From 0.14.0 · fixed in 0.40.3

  • chainguard.dev/melangeGo

    From 0.14.0 · fixed in 0.40.3

References 2

GitHub · chainguard-dev/melange