# CVE-2023-32698: nfpm vulnerable to Incorrect Default Permissions

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 18% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-05-24T17:30:16.000Z
- Modified: 2026-08-07T08:12:17.927Z
- Also known as: GHSA-w7jw-q4fg-qc4c, GO-2023-1788
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

nFPM is an alternative to fpm. The file permissions on the checked-in files were not maintained. Hence, when nfpm packaged 
the 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.

(As written by CVE List.)

## Affected

- goreleaser nfpm: >= 2.0.0, < 2.29.0; >= 0.1.0, < 2.29.0; from 0.1.0 before 2.29.0
- github.com/goreleaser/nfpm/v2 (Go): from 2.0.0 before 2.29.0
- github.com/goreleaser/nfpm (Go): from 0.1.0 up to 1.10.3

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/goreleaser/nfpm/security/advisories/GHSA-w7jw-q4fg-qc4c> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/goreleaser/nfpm/commit/ed9abdf63d5012cc884f2a83b4ab2b42b3680d30> (fix, patch, web)
- <https://github.com/goreleaser/nfpm/releases/tag/v2.29.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-32698> (advisory)
- <https://github.com/goreleaser/nfpm> (package)
- <https://github.com/advisories/GHSA-w7jw-q4fg-qc4c> (advisory)

## Sources

- CVE List: [CVE-2023-32698](https://www.cve.org/CVERecord?id=CVE-2023-32698), CVE Terms of Use, modified 2025-01-10
- GitHub Advisory Database: [GHSA-w7jw-q4fg-qc4c](https://github.com/advisories/GHSA-w7jw-q4fg-qc4c), CC-BY-4.0, modified 2026-08-07
- Go Vulnerability Database: [GO-2023-1788](https://pkg.go.dev/vuln/GO-2023-1788), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2023-32698](https://nvd.nist.gov/vuln/detail/CVE-2023-32698), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-32698 · Whole record: https://cve.day/CVE-2023-32698.json · Rebuilt by cve.day 2026-11-25T22:58:24.437Z
