CVE-2023-32698 nfpm vulnerable to Incorrect Default Permissions
HighCVSS 7.1
EPSS 0.38%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| goreleaser github.com/goreleaser/nfpm/v2 | = >= 0.1.0, < 2.29.0; = >= 2.0.0, < 2.29.0; >= 0.1.0, < 2.29.0 | 2.29.0 | Fixed |
| goreleaser github.com/goreleaser/nfpm/v2(Go) | >= 0.1.0, <= 1.10.3; >= 2.0.0, < 2.29.0 | 2.29.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| goreleaser github.com/goreleaser/nfpm/v2(Go) | >= 2.0.0, < 2.29.0 | 2.29.0 |
| goreleaser github.com/goreleaser/nfpm/v2(Go) | >= 0.1.0, <= 1.10.3 | No fix listed |
| goreleaser github.com/goreleaser/nfpm/v2 | = >= 2.0.0, < 2.29.0 | No fix listed |
| goreleaser github.com/goreleaser/nfpm/v2 | = >= 0.1.0, < 2.29.0 | No fix listed |
| goreleaser github.com/goreleaser/nfpm/v2 | >= 0.1.0, < 2.29.0 | 2.29.0 |
References
- https://github.com/goreleaser/nfpm/security/advisories/GHSA-w7jw-q4fg-qc4c exploit mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/goreleaser/nfpm/commit/ed9abdf63d5012cc884f2a83b4ab2b42b3680d30 patch
- github.com product
- https://github.com/goreleaser/nfpm/releases/tag/v2.29.0 release-notes
- github.com vendor-advisory