CVE-2023-32698 json
nfpm vulnerable to Incorrect Default Permissions
published 3y ago modified 3mo 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 33%
- 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
Is CVE-2023-32698 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor 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
- last yr.
Exploit prediction
0.38% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-15).
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 Intel 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.