{"answers":{"affected":"3 open source packages ship an affected version, including chainguard.dev/melange.","exploited":"There is no known exploitation of CVE-2025-54059 in the wild and no public exploit code.","fix":"Upgrade chainguard.dev/melange to 0.29.5 or later.","what":"CVE-2025-54059 is a medium-severity vulnerability in chainguard-dev melange, published on 18 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-54059 and fix it if it is affected.\n\nWhat it is: CVE-2025-54059 is a medium-severity vulnerability in chainguard-dev melange, published on 18 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-54059 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- chainguard.dev/melange (Go): affected from 0.23.0; fixed in 0.29.5\n- chainguard.dev/melange (Go): affected from 0.23.0; fixed in 0.29.5\n- chainguard.dev/melange (Go): affected from 0.23.0; fixed in 0.29.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-54059/ (Markdown: https://insights.sbomify.com/CVE-2025-54059/index.md)","id":"CVE-2025-54059","markdown":"https://insights.sbomify.com/CVE-2025-54059/index.md","name":"CVE-2025-54059","record":{"aliases":["GHSA-5662-cv6m-63wh","GO-2025-3815"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_modify","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go package builder","requires_auth":"low_privilege","summary":"An attacker can tamper with SBOM files in APKs due to world-writable permissions, confusing security scanners or causing denial of service.","user_interaction":"not_required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"melange creates SBOM files in APKs with world-writable permissions","id":"CVE-2025-54059","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"misconfiguration","year":"2025"},"n_packages":3,"n_references":7,"next":{"headline":"SQL injection in WeGIA","id":"CVE-2025-54060"},"packages":[{"ecosystem":"Go","fixed":["0.29.5"],"introduced":["0.23.0"],"last_affected":[],"package":"chainguard.dev/melange","purl":null,"source":"GHSA-5662-cv6m-63wh"},{"ecosystem":"Go","fixed":["0.29.5"],"introduced":["0.23.0"],"last_affected":[],"package":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","source":"GHSA-5662-cv6m-63wh"},{"ecosystem":"Go","fixed":["0.29.5"],"introduced":["0.23.0"],"last_affected":[],"package":"chainguard.dev/melange","purl":"pkg:golang/chainguard.dev/melange","source":"GO-2025-3815"}],"prev":{"headline":"SQL injection in WeGIA","id":"CVE-2025-54058"},"products":["melange"],"published":"2025-07-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-18","vendors":["chainguard-dev"]},"summary":"An attacker can tamper with SBOM files in APKs due to world-writable permissions, confusing security scanners or causing denial of service.","url":"https://insights.sbomify.com/CVE-2025-54059/"}