What’s Vulnerable › Vulnerabilities
CVE-2023-32698: nfpm vulnerable to Incorrect Default Permissions
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2023-05-30 · updated 2026-06-17
- Weakness: CWE-276
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.
Affected products
- goreleaser nfpm: from 0.1.0 before 2.29.0 — fixed in 2.29.0
How to fix
Upgrade to a fixed version: goreleaser nfpm 2.29.0. Check the vendor advisory for mitigations.
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
- 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
Get alerted when CVE-2023-32698 or the next vulnerability affects your stack