CVE-2026-25145
MEDIUM 5.5CVSS 3.1melange has a path traversal in license-path which allows reading files outside workspace
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.
- Published
- 4 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-2w4f-9fgg-q2v9GO-2026-4409
- Sources
- NVDJSONOSV GHSA-2w4f-9fgg-q2v9JSONOSV GO-2026-4409JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | chainguard | melangecpe:2.3:a:chainguard:melange:*:*:*:*:*:go:*:* |
>= 0.14.0, < 0.40.5 | 0.40.5 |
| OSV | Go | chainguard.dev/melange | >= 0.14.0, < 0.40.3 | 0.40.3 |
References
- https://github.com/chainguard-dev/melange/commit/2f95c9f4355ed993f2670bf1bb82d88b0f65e9e4 · Patch, WEB
- https://github.com/chainguard-dev/melange/security/advisories/GHSA-2w4f-9fgg-q2v9 · Patch, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-25145 · ADVISORY
- https://github.com/chainguard-dev/melange · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 4 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 4 Feb 2026)