CVE-2026-25145
MEDIUMmelange 0.14.0-0.40.2 - Path Traversal via License File Path
Title source: llmDescription
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.
References (2)
Core 2
Core References
Vendor Advisory x_refsource_confirm
https://github.com/chainguard-dev/melange/security/advisories/GHSA-2w4f-9fgg-q2v9
Scores
CVSS v3
5.5
EPSS
0.0017
EPSS Percentile
6.4%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-22
Status
published
Products (2)
chainguard/melange
0.14.0 - 0.40.5
chainguard.dev/melange
0.14.0 - 0.40.3Go
Published
Feb 04, 2026
Tracked Since
Feb 18, 2026