CVE-2025-54059: chainguard-dev melange · Incorrect Default Permissions
Affects chainguard-dev melangeSource CVE Database V5
Not known to be exploited · CVSS 4.4 Medium : upgrade to 0.29.5 when convenient.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.29.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 18 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade chainguard-dev/melange to 0.29.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubchainguard-dev/melangepkg:github/chainguard-dev/melangeOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should upgrade melange to version 0.29.5 or later immediately to ensure the default file permissions for SBOM files are correctly set. Until the upgrade is applied, restrict local user permissions on build and runtime environments to trusted personnel only, minimizing the risk of unauthorized file tampering. Implement file integrity monitoring specifically targeting SBOM files to detect unauthorized changes promptly. Incorporate access control mechanisms such as mandatory access control (e.g., SELinux, AppArmor) to enforce stricter file permissions beyond default settings. Review and harden pipeline and container runtime security policies to limit write access to critical files. Additionally, integrate SBOM verification steps in CI/CD pipelines to detect inconsistencies or tampering early. Regularly audit user accounts and permissions on build systems to prevent privilege escalation or misuse. Finally, maintain up-to-date vulnerability management processes to quickly respond to new patches and advisories related to melange and related tooling.
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.
References
- github.com/chainguard-dev/melange/security/advisories/GHSA-5662-cv6m-63wh (opens in a new tab)
- github.com/chainguard-dev/melange/pull/1836 (opens in a new tab)
- github.com/chainguard-dev/melange/pull/2086 (opens in a new tab)
- github.com/chainguard-dev/melange/commit/1b272db2a0bb3441553284cc56d87236b4b64c04 (opens in a new tab)
- github.com/chainguard-dev/melange/commit/e29494b4a40a91619ec1c87a09003c6d5164cea1 (opens in a new tab)
- github.com/chainguard-dev/melange/releases/tag/v0.23.0 (opens in a new tab)
- github.com/chainguard-dev/melange/releases/tag/v0.29.5 (opens in a new tab)