{"cve":"CVE-2026-25145","nvd":{"published":"2026-02-04T20:16:06.373","modified":"2026-06-17T10:24:11.197","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5},"cwes":["CWE-22"],"references":["https://github.com/chainguard-dev/melange/commit/2f95c9f4355ed993f2670bf1bb82d88b0f65e9e4","https://github.com/chainguard-dev/melange/security/advisories/GHSA-2w4f-9fgg-q2v9"],"products":["chainguard:melange"],"source":"nvd","synced_at":"2026-10-19T22:22:27.261130201+00:00"},"epss":{"cve":"CVE-2026-25145","score":0.00191,"percentile":0.08821,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2w4f-9fgg-q2v9","url":"https://osv.dev/vulnerability/GHSA-2w4f-9fgg-q2v9","summary":"melange has a path traversal in license-path which allows reading files outside workspace ","modified":"2026-09-10T03:50:33.764030501Z","packages":[{"ecosystem":"Go","name":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","ranges":[">=0.14.0 <0.40.3"],"fixed":["0.40.3"]}]},{"id":"GO-2026-4409","url":"https://osv.dev/vulnerability/GO-2026-4409","summary":"melange has a path traversal in license-path which allows reading files outside workspace in chainguard.dev/melange","modified":"2026-02-05T16:28:57.089655Z","packages":[{"ecosystem":"Go","name":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","ranges":[">=0.14.0 <0.40.3"],"fixed":["0.40.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}