{"id":"CVE-2025-54059","published":"2025-07-18T15:40:43Z","modified":"2025-07-18T16:04:30Z","title":"melange creates SBOM files in APKs with world-writable permissions","vendor":"chainguard-dev","product":"melange","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00153,"percentile":0.04512,"provenance":"source"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"references":[{"url":"https://github.com/chainguard-dev/melange/security/advisories/GHSA-5662-cv6m-63wh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chainguard-dev/melange/pull/1836","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/melange/pull/2086","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/melange/commit/1b272db2a0bb3441553284cc56d87236b4b64c04","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/melange/commit/e29494b4a40a91619ec1c87a09003c6d5164cea1","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/melange/releases/tag/v0.23.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/melange/releases/tag/v0.29.5","tags":["x_refsource_MISC"]}],"priority":{"score":4.0,"factors":[{"name":"EPSS percentile","points":0.9},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"chainguard-dev","affectedVersions":[{"vendor":"chainguard-dev","product":"melange","versions":[">= 0.23.0, < 0.29.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-18T15:53:51.678522Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"chainguard.dev/melange","vulnerableRanges":[">=0.23.0, <0.29.5"],"patched":["0.29.5"],"from":["GHSA-5662-cv6m-63wh","GO-2025-3815"],"provenance":"source"}],"summary":{"text":"melange, the declarative build tool for apk packages made by chainguard-dev, generated SBOM files inside apks with world-writable (mode 666) permissions in versions from 0.23.0 up to but not including 0.29.5. An attacker with local, low-privileged access to a running image could modify these SBOM files, potentially confusing security scanners, and could in special circumstances cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:10Z"},"euvd":{"id":"EUVD-2025-21889","exploited":false,"provenance":"source"}}