{"id":"GHSA-f6mm-5fc7-3g3c","aliases":["GHSA-f6mm-5fc7-3g3c","GO-2024-2860"],"related":["CGA-gfwm-j5mw-793p"],"kind":"vulnerability","state":"published","title":"goreleaser shows environment by default","summary":"### Summary\nSince #4787 the log output is printed on the INFO level, while previously it was logged on DEBUG. This means if the `go build` output is non-empty, goreleaser leaks the environment.\n\n### PoC\n* Create a Go project with dependencies, do not pull them yet (or run goreleaser later in a container, or delete `$GOPATH/pkg`).\n* Make sure to have secrets set in the environment\n* Make sure to not have `go mod tidy` in a before hook\n* Run `goreleaser release --clean`\n* Go prints lots of `go: downloading ...` lines, which triggers the \"if output not empty, log it\" line, which includes the environment.\n\n### Impact\nCredentials and tokens are leaked.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Summary\nSince #4787 the log output is printed on the INFO level, while previously it was logged on DEBUG. This means if the `go build` output is non-empty, goreleaser leaks the environment.\n\n### PoC\n* Create a Go project with dependencies, do not pull them yet (or run goreleaser later in a container, or delete `$GOPATH/pkg`).\n* Make sure to have secrets set in the environment\n* Make sure to not have `go mod tidy` in a before hook\n* Run `goreleaser release --clean`\n* Go prints lots of `go: downloading ...` lines, which triggers the \"if output not empty, log it\" line, which includes the environment.\n\n### Impact\nCredentials and tokens are leaked.","format":"markdown","source":"ghsa"},{"lang":"en","text":"goreleaser shows environment by default in github.com/goreleaser/goreleaser","format":"markdown","source":"go"}],"published":"2024-05-15T17:17:10.000Z","modified":"2026-09-10T03:50:00.369Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":6.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":6.2,"rating":"MEDIUM"}],"cwes":["CWE-532"],"affected":[{"ranges":[{"type":"semver","introduced":"1.26.0","status":"affected","fixed":"1.26.1"}],"ecosystem":"Go","package":"github.com/goreleaser/goreleaser","purl":"pkg:golang/github.com/goreleaser/goreleaser","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.26.0","status":"affected","fixed":"1.26.1"}],"ecosystem":"Go","package":"github.com/goreleaser/goreleaser","purl":"pkg:golang/github.com/goreleaser/goreleaser","source":"go"}],"references":[{"url":"https://github.com/goreleaser/goreleaser/security/advisories/GHSA-f6mm-5fc7-3g3c","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/goreleaser/goreleaser/pull/4787","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/goreleaser/goreleaser/commit/22f734e41f7a5111a031a3a4eb714c1b6aa6456b","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/goreleaser/goreleaser","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f6mm-5fc7-3g3c","url":"https://github.com/advisories/GHSA-f6mm-5fc7-3g3c","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:00.369Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2860","url":"https://pkg.go.dev/vuln/GO-2024-2860","licence":"CC-BY-4.0","modified":"2026-02-04T03:44:32.815Z"}],"updatedAt":"2026-11-25T22:56:23.747Z"}