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.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.4%top 67.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/goreleaser/nfpmno fix listedGHSA-w7jw-q4fg-qc4c
Gogithub.com/goreleaser/nfpm/v22.29.0GHSA-w7jw-q4fg-qc4c
Gogithub.com/goreleaser/nfpm/v22.29.0GO-2023-1788

Affected products (as reported)

VendorProductVersions
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