Medium severity · published Feb 4, 2026
CVE-2026-25145
melange has a path traversal in license-path which allows reading files outside workspace
5.5
CVSS
0.2%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 9% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ME
melange · chainguard-dev
>= 0.14.0, < 0.40.3 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-25145
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-25145
Patch
https://github.com/chainguard-dev/melange/commit/2f95c9f4355ed993f2670bf1bb82d88b0f65e9e4
Patch
https://github.com/chainguard-dev/melange/security/advisories/GHSA-2w4f-9fgg-q2v9
More from melange
8.8
CVE-2026-24844
melange pipeline working-directory could allow command injection
8.4
CVE-2026-24843
melange QEMU runner could write files outside workspace directory
8.3
CVE-2026-54174
melange: Incomplete package integrity verification allows data section substitution
7.8
CVE-2026-25143
melange affected by potential host command execution via license-check YAML mode patch pipeline
6.1
CVE-2026-29050
melange has Path Traversal When Resolving External Pipelines via Unvalidated pipeline[].uses
