CVE-2025-54059 Details
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.
A vulnerability exists in the Melange tool, specifically in versions 0.23.0 prior to 0.29.5, where the Software Bill of Materials (SBOM) files generated in APK packages were assigned world-writable permissions. This flaw could enable an unprivileged user to modify APK SBOMs on a live image, potentially misleading security scanners. Under certain conditions, this vulnerability could also lead to a denial-of-service.
Users can upgrade to Melange version 0.29.5 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 18, 2025CISA-ADP
Assessed Jul 18, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/chainguard-dev/melange/commit/1b272db2a0bb3441553284cc56d87236b4b64c04 | [email protected] | Source CodeVendor |
| https://github.com/chainguard-dev/melange/commit/e29494b4a40a91619ec1c87a09003c6d5164cea1 | [email protected] | Source CodeVendor |
| https://github.com/chainguard-dev/melange/pull/1836 | [email protected] | Issue TrackingVendor |
| https://github.com/chainguard-dev/melange/pull/2086 | [email protected] | Issue TrackingVendor |
| https://github.com/chainguard-dev/melange/releases/tag/v0.23.0 | [email protected] | Release NotesVendor |
| https://github.com/chainguard-dev/melange/releases/tag/v0.29.5 | [email protected] | Release NotesVendor |
| https://github.com/chainguard-dev/melange/security/advisories/GHSA-5662-cv6m-63wh | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-276 | Incorrect Default Permissions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| chainguard-dev melange | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 18, 2025 | New CVE Received | [email protected] |
Volerion