{"id":"GHSA-w7jw-q4fg-qc4c","revision":null,"records":[{"revision":"be54ac565cb94bf8a79fb10f1e17bd1d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2023-32698","aliases":[],"title":"nfpm vulnerable to 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.","state":0,"publishedAt":"2023-05-30T03:56:30.807+00:00","modifiedAt":"2025-01-10T20:36:22.81+00:00","affected":[{"ecosystem":"Vendor product","name":"nfpm","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"goreleaser\",\n                    \"product\": \"nfpm\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 2.0.0, < 2.29.0\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 0.1.0, < 2.29.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"severity":"HIGH"}],"references":["https://github.com/goreleaser/nfpm/security/advisories/GHSA-w7jw-q4fg-qc4c","https://github.com/goreleaser/nfpm/commit/ed9abdf63d5012cc884f2a83b4ab2b42b3680d30","https://github.com/goreleaser/nfpm/releases/tag/v2.29.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-32698","license":"CVE Program Terms of Use","key":"cve-program:CVE-2023-32698","identifiers":["CVE-2023-32698"]},"retained":false,"historicalAffected":[]},{"revision":"688b28c73249428e8c5917b9bb0bbf8a","observedAt":"2026-11-22T06:26:55.349+00:00","statement":{"source":"euvd","id":"EUVD-2023-1637","aliases":["CVE-2023-32698","GHSA-w7jw-q4fg-qc4c"],"title":"nFPM is an alternative to fpm. The file permissions on the checked-in files were not maintained. Hence, when nfpm packaged ","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"severity":null}],"references":["https://github.com/goreleaser/nfpm/security/advisories/GHSA-w7jw-q4fg-qc4c","https://github.com/goreleaser/nfpm/commit/ed9abdf63d5012cc884f2a83b4ab2b42b3680d30","https://github.com/goreleaser/nfpm/releases/tag/v2.29.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-1637","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 30, 2023, 3:56:30 AM","dateUpdated":"Jan 10, 2025, 8:36:22 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2023-1637","identifiers":["EUVD-2023-1637","CVE-2023-32698","GHSA-w7jw-q4fg-qc4c"]},"retained":false,"historicalAffected":[]},{"revision":"31f28c9a6dd349c9aab56ff675d4ba4d","observedAt":"2026-10-24T22:17:15.774+00:00","statement":{"source":"nvd","id":"CVE-2023-32698","aliases":[],"title":"nFPM is an alternative to fpm. The file permissions on the checked-in files were not maintained. Hence, when nfpm packaged ","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.","state":0,"publishedAt":"2023-05-30T04:15:10.187+00:00","modifiedAt":"2026-06-17T05:59:24.99+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"severity":"HIGH"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"severity":"HIGH"}],"references":["https://github.com/goreleaser/nfpm/commit/ed9abdf63d5012cc884f2a83b4ab2b42b3680d30","https://github.com/goreleaser/nfpm/releases/tag/v2.29.0","https://github.com/goreleaser/nfpm/security/advisories/GHSA-w7jw-q4fg-qc4c"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2023-32698","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-276"],"productCriteria":["cpe:2.3:a:goreleaser:nfpm:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2023-05-30T04:15:10.187","lastModified":"2026-06-17T05:59:24.990"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2023-32698","identifiers":["CVE-2023-32698"]},"retained":false,"historicalAffected":[]},{"revision":"2498b7cce38c46888f47004a8b0789e9","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-w7jw-q4fg-qc4c","aliases":["CVE-2023-32698","GO-2023-1788"],"title":"nfpm has incorrect default permissions","description":"### Summary\nWhen building packages directly from source control, file permissions on the checked-in files are not maintained. \n\n### Details\nWhen building packages directly from source control, file permissions on the checked-in files are not maintained. When nfpm packaged the files (without extra config for enforcing its own permissions) files could go out with bad permissions (chmod 666 or 777).\n\n### PoC\nCreate a default nfpm structure. \n\nWithin the test folder, create 3 files named `chmod-XXX.sh`. Each script has file \npermissions set corresponding with their file names (`chmod-777.sh` = `chmod 777`). Below each \nfile and permissions can be seen.\n\n```console\n$ ls -lart test \ntotal 24\n-rwxrwxrwx   1 user  group   11 May 19 13:15 chmod-777.sh\n-rw-rw-rw-   1 user  group   11 May 19 13:16 chmod-666.sh\ndrwxr-xr-x   5 user  group  160 May 19 13:19 .\n-rw-rw-r--   1 user  group   11 May 19 13:19 chmod-664.sh\ndrwxr-xr-x  10 user  group  320 May 19 13:29 ..\n```\n\nBelow is the snippet nfpm configuration file of the contents of the package. The test folder \nand files has no extra config for enforcing permissions. \n\n```yaml\ncontents:\n- src: foo-binary\n  dst: /usr/bin/bar\n- src: bar-config.conf\n  dst: /etc/foo-binary/bar-config.conf\n  type: config\n- src: test\n  dst: /etc/test/scripts\n```\n\nThe next step is to create a deb package.\n\n```console\n$ nfpm package -p deb # Create dep package\nusing deb packager...\ncreated package: foo_1.0.0_arm64.deb\n```\n\nWhen on a Ubuntu VM, install the foo package which was created\n\n```console\n$ sudo dpkg -i foo_1.0.0_arm64.deb # Installing deb package within Ubuntu\nSelecting previously unselected package foo.\n(Reading database ... 67540 files and directories currently installed.)\nPreparing to unpack foo_1.0.0_arm64.deb ...\nUnpacking foo (1.0.0) ...\nSetting up foo (1.0.0) ...\n```\n\nLooking at `/etc/test/scripts` and viewing the permissions. Permissions are passed exactly the same as the source.\n\n```console\n$ ls -lart /etc/test/scripts\ntotal 20\n-rwxrwxrwx 1 root root   11 May 22 12:15 chmod-777.sh\n-rw-rw-rw- 1 root root   11 May 22 12:16 chmod-666.sh\n-rw-rw-r-- 1 root root   11 May 22 12:19 chmod-664.sh\ndrwxr-xr-x 3 root root 4096 May 22 13:00 ..\ndrwxr-xr-x 2 root root 4096 May 22 13:00 .\n```\n\n\n## Solution\nTo prevent world-writable files from making it into the packages, add the ability to override the default permissions of packaged files using a umask config option in the packaging spec file. This feature in nfpm would allow applying a global umask across any files being packaged, therefore, with the correct configuration, preventing world-writable files without needing to list permissions on each and every file in the package\n\n\n### Impact\n\nVulnerability is https://cwe.mitre.org/data/definitions/276.html\nhttps://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N\n\nAnyone using nfpm for creating packages and not checking/setting file permissions before packaging could result in bad permissions for files/folders.","state":0,"publishedAt":"2023-05-24T17:30:16+00:00","modifiedAt":"2026-08-07T08:12:17.9275814+00:00","affected":[{"ecosystem":"Go","name":"github.com/goreleaser/nfpm/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.29.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/goreleaser/nfpm","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.1.0"},{"kind":"last_affected","version":"1.10.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/goreleaser/nfpm/security/advisories/GHSA-w7jw-q4fg-qc4c","https://nvd.nist.gov/vuln/detail/CVE-2023-32698","https://github.com/goreleaser/nfpm/commit/ed9abdf63d5012cc884f2a83b4ab2b42b3680d30","https://github.com/goreleaser/nfpm","https://github.com/goreleaser/nfpm/releases/tag/v2.29.0"],"sourceUrl":"https://github.com/advisories/GHSA-w7jw-q4fg-qc4c","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-w7jw-q4fg-qc4c","identifiers":["GHSA-w7jw-q4fg-qc4c","CVE-2023-32698","GO-2023-1788"]},"retained":false,"historicalAffected":[]},{"revision":"7e814086a0ba43408fe8f5c9925298a8","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2023-1788","aliases":["CVE-2023-32698","GHSA-w7jw-q4fg-qc4c"],"title":"Incorrect permissions in github.com/goreleaser/nfpm/v2","description":"When nfpm packages files without additional configuration to enforce its own permissions, the files could be packaged with incorrect permissions (chmod 666 or 777). Anyone who uses nfpm to create packages and does not check or set file permissions before packaging could result in files or folders being packaged with incorrect permissions.","state":0,"publishedAt":"2023-06-01T21:27:40+00:00","modifiedAt":"2026-08-07T08:12:03.6698739+00:00","affected":[{"ecosystem":"Go","name":"github.com/goreleaser/nfpm/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.29.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/goreleaser/nfpm/commit/ed9abdf63d5012cc884f2a83b4ab2b42b3680d30","https://github.com/goreleaser/nfpm/releases/tag/v2.29.0","https://github.com/advisories/GHSA-w7jw-q4fg-qc4c"],"sourceUrl":"https://osv.dev/vulnerability/GO-2023-1788","license":"OSV · upstream source license applies","key":"osv:GO-2023-1788","identifiers":["GO-2023-1788","CVE-2023-32698","GHSA-w7jw-q4fg-qc4c"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-22T16:25:55.0701968+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-22T16:25:55.0701968+00:00","lastSuccessAt":"2026-11-22T16:25:55.2486505+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:55.2486514+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-a00cc431548e20f01f2da20f449eca4a9c3c2d80f0a99ee8150099224d339982-f889044d5952ca2c043a3f79edce0c851043d7aa07652c964a93712ef2aae335","complete":true,"records":430476,"lastAttemptAt":"2026-11-22T16:25:40.279669+00:00","lastSuccessAt":"2026-11-22T16:25:40.2330056+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:40.279669+00:00","snapshotPublishedAt":"2026-11-22T16:24:23+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-82e2c24a4f614937853e600b1d5b95b9","complete":false,"records":13928,"lastAttemptAt":"2026-11-22T16:28:09.6714324+00:00","lastSuccessAt":"2026-11-22T16:28:09.667+00:00","error":"31 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-22T16:28:09.667+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13944,"expectedIdentifiers":13976,"failedIdentifiers":31},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-22T16:25:55.0701968+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-22T16:25:55.0701968+00:00","lastSuccessAt":"2026-11-22T16:25:55.2495262+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:55.2495265+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b418bc3a0a804db68d2746e614753140","complete":false,"records":13940,"lastAttemptAt":"2026-11-22T16:26:20.8835169+00:00","lastSuccessAt":"2026-11-22T16:26:20.879+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:26:20.879+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13975,"expectedIdentifiers":13976,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-a9c862bcf8bde52ce182f69609f4579ca2fc6956e44f694dddf6a66800619683","complete":true,"records":9989,"lastAttemptAt":"2026-11-22T16:25:54.9004528+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:54.9004528+00:00","snapshotPublishedAt":"2026-11-22T16:18:32+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-22T16:25:40.4282716+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:40.4282716+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-bee95050556198fd967bb73ce720a9ae414cd84a3b278a529e0def1a55b70f2d","complete":true,"records":3214,"lastAttemptAt":"2026-11-22T16:25:55.0134385+00:00","lastSuccessAt":"2026-11-22T11:25:37.2279658+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:55.0134385+00:00","snapshotPublishedAt":"2026-11-22T10:03:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-93f8bde17692d302a32a561f6a40a941db24e5e5c3d8083eda975620fb7a4483","complete":true,"records":232857,"lastAttemptAt":"2026-11-22T16:25:40.5269788+00:00","lastSuccessAt":"2026-11-22T08:27:07.8116265+00:00","error":null,"lastVerifiedAt":"2026-11-22T16:25:40.5269788+00:00","snapshotPublishedAt":"2026-11-22T07:33:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}