CVE-2026-25145

MEDIUM

melange 0.14.0-0.40.2 - Path Traversal via License File Path

Title source: llm
STIX 2.1

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.

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