Security mailing lists by PureSourceCode

CVE-2026-25145

MEDIUM 5.5CVSS 3.1

melange has a path traversal in license-path which allows reading files outside workspace

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.

Published
4 Feb 2026
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-22
Also known as
GHSA-2w4f-9fgg-q2v9GO-2026-4409
Sources
NVDJSONOSV GHSA-2w4f-9fgg-q2v9JSONOSV GO-2026-4409JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD chainguard melange
cpe:2.3:a:chainguard:melange:*:*:*:*:*:go:*:*
>= 0.14.0, < 0.40.5 0.40.5
OSV Go chainguard.dev/melange >= 0.14.0, < 0.40.3 0.40.3

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 4 Feb 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Feb 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 4 Feb 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.