Live threats

All CVEs / Chainguard

CVE-2026-25145Chainguard Melange

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
—
Auth required
Yes
Published
Feb 4, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Melange.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go chainguard.dev/melange ≥ 0.14.0 < 0.40.3 0.40.3 go get chainguard.dev/melange@v0.40.3
Go chainguard.dev/melange ≥ 0.14.0 < 0.40.3 0.40.3 go get chainguard.dev/melange@v0.40.3

Per OSV / GitHub Advisories (GHSA-2w4f-9fgg-q2v9, GO-2026-4409). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
chainguardmelange≥ 0.14.0 < 0.40.5

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.