Vulnerability Description
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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Chainguard | Melange | >= 0.14.0, < 0.40.5 |
Related Weaknesses (CWE)
References
- https://github.com/chainguard-dev/melange/commit/2f95c9f4355ed993f2670bf1bb82d88Patch
- https://github.com/chainguard-dev/melange/security/advisories/GHSA-2w4f-9fgg-q2vPatchVendor Advisory
FAQ
What is CVE-2026-25145?
CVE-2026-25145 is a vulnerability with a CVSS score of 5.5 (MEDIUM). 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-dri...
How severe is CVE-2026-25145?
CVE-2026-25145 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-25145?
Check the references section above for vendor advisories and patch information. Affected products include: Chainguard Melange.