Vulnerability · Published May 30, 2023 · Assigned by GitHub_M
CVE-2023-32698nfpm vulnerable to Incorrect Default Permissions
High 7.1
In plain English
A high-severity incorrect default permissions in nfpm from goreleaser. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/goreleaser/nfpm | no fix listed | GHSA-w7jw-q4fg-qc4c |
| Go | github.com/goreleaser/nfpm/v2 | 2.29.0 | GHSA-w7jw-q4fg-qc4c |
| Go | github.com/goreleaser/nfpm/v2 | 2.29.0 | GO-2023-1788 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| goreleaser | nfpm | >= 2.0.0, < 2.29.0>= 0.1.0, < 2.29.0 |
Weakness: CWE-276 · Vector: 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 x_refsource_CONFIRM
- https://github.com/goreleaser/nfpm/commit/ed9abdf63d5012cc884f2a83b4ab2b42b3680d30 x_refsource_MISC
- https://github.com/goreleaser/nfpm/releases/tag/v2.29.0 x_refsource_MISC