# melange's world-writable permissions expose SBOM files to potential image tampering

Advisory record · `GHSA-5662-cv6m-63wh`

- **Identifiers:** `GHSA-5662-cv6m-63wh` · `CVE-2025-54059` · `GO-2025-3815`
- **State:** Confirmed
- **Severity:** CVSS 4.4 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-276](https://cwe.mitre.org/data/definitions/276.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 18 Jul 2025
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 18 Jul 2025, 20:13 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `chainguard.dev/melange` (Go): affected `>=0.23.0, <0.29.5`; fixed in `0.29.5`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The melange Go package, versions 0.23.0 up to but not including 0.29.5, generated SBOM files inside built apk packages with world-writable permissions (mode 666). An unprivileged local user on a running image could modify these SBOMs, which could confuse security scanners; the source also mentions a possible denial of service under special circumstances. Upgrade melange to version 0.29.5 or later.

Written 1 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 4.4 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0015, the 4th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:14 UTC: First seen by agentprime
- 31 Oct 2026, 14:14 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-5662-cv6m-63wh)

## Sources

- [GitHub Advisory Database: GHSA-5662-cv6m-63wh](https://github.com/advisories/GHSA-5662-cv6m-63wh)
- [OSV: GHSA-5662-cv6m-63wh](https://osv.dev/vulnerability/GHSA-5662-cv6m-63wh)
- <https://github.com/chainguard-dev/melange/security/advisories/GHSA-5662-cv6m-63wh>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54059>
- <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>
- <https://github.com/chainguard-dev/melange/releases/tag/v0.29.5>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-5662-cv6m-63wh>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-5662-cv6m-63wh/>. Everything for agents: <https://agentprime.io/llms.txt>.
