CVE-2023-32698 json
nfpm vulnerable to Incorrect Default Permissions
published 2023-05-24 3 y ago modified 2026-08-07 3 mo ago also GHSA-w7jw-q4fg-qc4c , GO-2023-1788 , EUVD-2023-1637
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 32%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/goreleaser/nfpm/v2 2.29.0
- goreleaser nfpm 2.29.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-32698 updated cvss 7.1
nFPM: creating packages without checking file permissions results in bad permission
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 21 mo ago
Exploit prediction
0.38% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/goreleaser/nfpm/security/advisories/GHSA-w7jw-q4fg-qc4c referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/goreleaser/nfpm/v2 | >=2.0.0, <2.29.0 |
2.29.0 |
| go | github.com/goreleaser/nfpm | >=0.1.0, <=1.10.3 |
no fix listed |
Affected products
- goreleaser nfpm
Classification
- Weakness
-
- CWE-276 Incorrect Default Permissions
References
-
github.com
/goreleaser/nfpm/commit/ed9abdf63d5012cc884f2a83b4ab2b42b3680d30
web, patch
-
github.com
/goreleaser/nfpm/security/advisories/GHSA-w7jw-q4fg-qc4c
web, exploit, mitigation, vendor-advisory
-
github.com
/goreleaser/nfpm/releases/tag/v2.29.0
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2023-32698
advisory
-
github.com
/goreleaser/nfpm
package
-
github.com
/advisories/GHSA-w7jw-q4fg-qc4c
advisory
Sources
- CVE List CVE-2023-32698
- GitHub Advisory GHSA-w7jw-q4fg-qc4c
- NVD CVE-2023-32698
- OSV GO-2023-1788
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.