GO-2023-1788

Source
https://pkg.go.dev/vuln/GO-2023-1788
Import Source
https://vuln.go.dev/ID/GO-2023-1788.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2023-1788
Aliases
Published
2023-06-01T21:27:40Z
Modified
2024-05-20T16:03:47Z
Summary
Incorrect permissions in github.com/goreleaser/nfpm/v2
Details

When nfpm packages files without additional configuration to enforce its own permissions, the files could be packaged with incorrect permissions (chmod 666 or 777). Anyone who uses nfpm to create packages and does not check or set file permissions before packaging could result in files or folders being packaged with incorrect permissions.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2023-1788"
}
References
Credits
    • oCHRISo
    • caarlos0
    • djgilcrease

Affected packages

Go / github.com/goreleaser/nfpm/v2

Package

Name
github.com/goreleaser/nfpm/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/goreleaser/nfpm/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.29.0

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/goreleaser/nfpm/v2",
            "symbols": [
                "Config.Validate",
                "Info.Validate",
                "Parse",
                "ParseFile",
                "ParseFileWithEnvMapping",
                "ParseWithEnvMapping",
                "PrepareForPackager",
                "Validate",
                "WithDefaults"
            ]
        },
        {
            "path": "github.com/goreleaser/nfpm/v2/files",
            "symbols": [
                "Content.WithFileInfoDefaults",
                "PrepareForPackager",
                "addGlobbedFiles",
                "addTree"
            ]
        }
    ]
}