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

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-07-18T15:40:43.277Z
- Modified: 2026-09-10T03:50:25.741Z
- Also known as: GHSA-5662-cv6m-63wh, GO-2025-3815
- Related: CGA-jjfv-8pqp-q3gc
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- chainguard-dev melange: >= 0.23.0, < 0.29.5
- chainguard.dev/melange (Go): from 0.23.0 before 0.29.5

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`

## References

- <https://github.com/chainguard-dev/melange/security/advisories/GHSA-5662-cv6m-63wh> (advisory, web)
- <https://github.com/chainguard-dev/melange/pull/1836> (web)
- <https://github.com/chainguard-dev/melange/pull/2086> (web)
- <https://github.com/chainguard-dev/melange/commit/1b272db2a0bb3441553284cc56d87236b4b64c04> (web)
- <https://github.com/chainguard-dev/melange/commit/e29494b4a40a91619ec1c87a09003c6d5164cea1> (web)
- <https://github.com/chainguard-dev/melange/releases/tag/v0.23.0>
- <https://github.com/chainguard-dev/melange/releases/tag/v0.29.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54059> (advisory)
- <https://github.com/chainguard-dev/melange> (package)

## Sources

- CVE List: [CVE-2025-54059](https://www.cve.org/CVERecord?id=CVE-2025-54059), CVE Terms of Use, modified 2025-07-18
- GitHub Advisory Database: [GHSA-5662-cv6m-63wh](https://github.com/advisories/GHSA-5662-cv6m-63wh), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3815](https://pkg.go.dev/vuln/GO-2025-3815), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-54059](https://nvd.nist.gov/vuln/detail/CVE-2025-54059), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54059 · Whole record: https://cve.day/CVE-2025-54059.json · Rebuilt by cve.day 2026-11-25T22:59:01.416Z
