CVE-2026-25145

Medium

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.

SeverityMedium
CVSS5.5
Exploit probability—
ProductChainguard Melange
PublishedFeb 4, 2026
First seenFeb 4, 2026

How to fix

Update
  • chainguard melange0.40.5 or later
  • chainguard.dev/melange0.40.3 or later

Affected products

ProductAffected versionsFixed in
chainguard melange0.14.0 ≤ v < 0.40.50.40.5
chainguard.dev/melangeGo0.14.0 ≤ v < 0.40.30.40.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.