CVE-2026-25145: chainguard-dev melange Path Traversal
Vulnerability summary
CVE-2026-25145 is a medium (CVSS 5.5) Path Traversal vulnerability in chainguard-dev melange. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 3Timeline
- 04-02-2026PublishedVulnerability first disclosed.
- 05-02-2026Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- OSV · WolfiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- OSV · GoEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.19%
Chance of exploitation in the next 30 days
Percentile
9%
Versus all other CVEs
30-day change
+0.02 pp
From 0.18% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard3 products
- cg< 0.2.201-r0
- wolfictl< 0.39.0-r1
- melange≥ 0.14.0, < 0.40.5
Chainguard-dev1 product
- melange≥ 0.14.0, < 0.40.3
Chainguard.dev1 product
- melange≥ 0.14.0, < 0.40.3
Wolfi1 product
- wolfictl< 0.39.0-r1
4 vendors · 6 products
References
5 links- github.com/chainguard-dev/melange/security/advisories/GHSA-2w4f-9fgg-q2v9X Refsource CONFIRMAdvisoryWEBPatchVendor Advisory
- github.com/chainguard-dev/melange/commit/2f95c9f4355ed993f2670bf1bb82d88b0f65e9e4X Refsource MISCFIXWEBPatch