{"schemaVersion":3,"id":"CVE-2025-54059","aliases":["GHSA-5662-cv6m-63wh","GO-2025-3815","CGA-gx39-jg88-x5pq","CGA-rvmg-2v23-x9mc"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-07-18T15:40:43.277Z","modified":"2025-07-18T16:04:30.154Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","exploitability":4.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","exploitability":4.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00153,"percentile":0.04025,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.018999999999999986,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00134},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00129,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00129,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00129,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00153,"percentile":0.04025}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00134,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00142,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00153,"percentile":0.04025}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-276","name":"Incorrect Default Permissions","description":"During installation, installed file permissions are set to allow anyone to modify those files.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/276.html"}],"affected":[{"vendor":"chainguard","product":"cg","name":"cg","label":"cg","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cg","purlType":"apk","versions":[{"text":"< 0_git20250730-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0_git20250730-r0","eol":null,"hubHref":null},{"vendor":"chainguard-dev","product":"melange","name":"melange","label":"melange","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.23.0, < 0.29.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.23.0, < 0.29.5","eol":null,"hubHref":"/vendor/chainguard-dev/melange"},{"vendor":"chainguard.dev","product":"melange","name":"chainguard.dev/melange","label":"melange","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/chainguard.dev/melange","purlType":"golang","versions":[{"text":"≥ 0.23.0, < 0.29.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.23.0, < 0.29.5","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/chainguard-dev/melange/security/advisories/GHSA-5662-cv6m-63wh","label":"github.com/chainguard-dev/melange/security/advisories/GHSA-5662-cv6m-63wh","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory"]},{"url":"https://github.com/chainguard-dev/melange/pull/1836","label":"github.com/chainguard-dev/melange/pull/1836","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX"]},{"url":"https://github.com/chainguard-dev/melange/pull/2086","label":"github.com/chainguard-dev/melange/pull/2086","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX"]},{"url":"https://github.com/chainguard-dev/melange/commit/1b272db2a0bb3441553284cc56d87236b4b64c04","label":"github.com/chainguard-dev/melange/commit/1b272db2a0bb3441553284cc56d87236b4b64c04","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX"]},{"url":"https://github.com/chainguard-dev/melange/commit/e29494b4a40a91619ec1c87a09003c6d5164cea1","label":"github.com/chainguard-dev/melange/commit/e29494b4a40a91619ec1c87a09003c6d5164cea1","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX"]},{"url":"https://github.com/chainguard-dev/melange/releases/tag/v0.23.0","label":"github.com/chainguard-dev/melange/releases/tag/v0.23.0","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/chainguard-dev/melange/releases/tag/v0.29.5","label":"github.com/chainguard-dev/melange/releases/tag/v0.29.5","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54059","label":"nvd.nist.gov/vuln/detail/CVE-2025-54059","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/chainguard-dev/melange","label":"github.com/chainguard-dev/melange","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54059.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54059.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2025:15405-1"],"duplicates":[],"related":["CGA-JJFV-8PQP-Q3GC","OPENSUSE-SU-2025:15405-1"]},"timeline":[{"kind":"published","date":"2025-07-18T15:40:43.277Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-07-18T16:04:30.154Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:15:30.033Z","stale":false,"partial":false}}