CVE-2026-25145
published 2026-02-04CVE-2026-25145: 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…
PriorityP432medium5.5CVSS 3.1
AVLACLPRLUINSUCHINAN
EPSS
0.17%
6.4th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| chainguard-dev | melange | — | — |
| chainguard.dev | melange | >= 0.14.0 < 0.40.3 | 0.40.3 |
| chainguard | melange | >= 0.14.0 < 0.40.5 | 0.40.5 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
melange has a path traversal in license-path which allows reading files outside workspace in chainguard.dev/melange
osv·2026-02-05
CVE-2026-25145 melange has a path traversal in license-path which allows reading files outside workspace in chainguard.dev/melange
melange has a path traversal in license-path which allows reading files outside workspace in chainguard.dev/melange
melange has a path traversal in license-path which allows reading files outside workspace in chainguard.dev/melange
OSV
melange has a path traversal in license-path which allows reading files outside workspace
osv·2026-02-04
CVE-2026-25145 [MEDIUM] melange has a path traversal in license-path which allows reading files outside workspace
melange has a path traversal in license-path which allows reading files outside workspace
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.
Fix: Merged in commit 2f95c9f4
Acknowledgements
melange thanks Oleh Konko (@1seal) from 1seal for discovering and reporting this issue.
GHSA
melange has a path traversal in license-path which allows reading files outside workspace
ghsa·2026-02-04
CVE-2026-25145 [MEDIUM] CWE-22 melange has a path traversal in license-path which allows reading files outside workspace
melange has a path traversal in license-path which allows reading files outside workspace
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.
Fix: Merged in commit 2f95c9f4
Acknowledgements
melange thanks Oleh Konko (@1seal) from 1seal for discovering and reporting this issue.
No detection rules found.
No public exploits indexed.
2026-02-04
Published