{"answers":{"affected":"5 open source packages ship an affected version, including github.com/goreleaser/nfpm/v2 and github.com/goreleaser/nfpm. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-32698 exists.","fix":"Upgrade github.com/goreleaser/nfpm/v2 to 2.29.0 or later.","what":"CVE-2023-32698 is a high-severity vulnerability in goreleaser nfpm, published on 30 May 2023. 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-2023-32698 and fix it if it is affected.\n\nWhat it is: CVE-2023-32698 is a high-severity vulnerability in goreleaser nfpm, published on 30 May 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-32698 exists.\n\nAffected packages and fixed versions:\n- github.com/goreleaser/nfpm/v2 (Go): affected from 2.0.0; fixed in 2.29.0\n- github.com/goreleaser/nfpm/v2 (Go): affected from 2.0.0; fixed in 2.29.0\n- github.com/goreleaser/nfpm/v2 (Go): affected from 2.0.0; fixed in 2.29.0\n- github.com/goreleaser/nfpm (Go): affected from 0.1.0 up to 1.10.3; no fix listed\n- github.com/goreleaser/nfpm (Go): affected from 0.1.0 up to 1.10.3; no fix listed\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-2023-32698/ (Markdown: https://insights.sbomify.com/CVE-2023-32698/index.md)","id":"CVE-2023-32698","markdown":"https://insights.sbomify.com/CVE-2023-32698/index.md","name":"CVE-2023-32698","record":{"aliases":["GHSA-w7jw-q4fg-qc4c","GO-2023-1788"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["privilege_escalation","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go packaging tool","requires_auth":"low_privilege","summary":"nfpm fails to preserve file permissions, potentially exposing sensitive files with world-readable or writable permissions in generated packages.","user_interaction":"not_required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nfpm","vendor":"goreleaser"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"description":"nFPM is an alternative to fpm. The file permissions on the checked-in files were not maintained. Hence, when nfpm packaged \nthe files (without extra config for enforcing it’s own permissions) files could go out with bad permissions (chmod 666 or 777). Anyone using nfpm for creating packages without checking/setting file permissions before packaging could result in bad permissions for files/folders.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"nfpm vulnerable to Incorrect Default Permissions","id":"CVE-2023-32698","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"misconfiguration","year":"2023"},"n_packages":5,"n_references":3,"next":{"headline":"MeterSphere denial of service vulnerability","id":"CVE-2023-32699"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0.1.0"],"last_affected":["1.10.3"],"package":"github.com/goreleaser/nfpm","purl":null,"source":"GHSA-w7jw-q4fg-qc4c"},{"ecosystem":"Go","fixed":[],"introduced":["0.1.0"],"last_affected":["1.10.3"],"package":"github.com/goreleaser/nfpm","purl":"pkg:golang/github.com/goreleaser/nfpm","source":"GHSA-w7jw-q4fg-qc4c"},{"ecosystem":"Go","fixed":["2.29.0"],"introduced":["2.0.0"],"last_affected":[],"package":"github.com/goreleaser/nfpm/v2","purl":null,"source":"GHSA-w7jw-q4fg-qc4c"},{"ecosystem":"Go","fixed":["2.29.0"],"introduced":["2.0.0"],"last_affected":[],"package":"github.com/goreleaser/nfpm/v2","purl":"pkg:golang/github.com/goreleaser/nfpm/v2","source":"GHSA-w7jw-q4fg-qc4c"},{"ecosystem":"Go","fixed":["2.29.0"],"introduced":["2.0.0"],"last_affected":[],"package":"github.com/goreleaser/nfpm/v2","purl":"pkg:golang/github.com/goreleaser/nfpm/v2","source":"GO-2023-1788"}],"prev":{"headline":"Sqlite-jdbc vulnerable to remote code execution when JDBC url is attacker controlled","id":"CVE-2023-32697"},"products":["nfpm"],"published":"2023-05-30","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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-10","vendors":["goreleaser"]},"summary":"nfpm fails to preserve file permissions, potentially exposing sensitive files with world-readable or writable permissions in generated packages.","url":"https://insights.sbomify.com/CVE-2023-32698/"}