{"id":"GHSA-f6mm-5fc7-3g3c","revision":"242d76d9bccc4e5abd8d191e5fe287ac","records":[{"revision":"242d76d9bccc4e5abd8d191e5fe287ac","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-f6mm-5fc7-3g3c","aliases":["GO-2024-2860"],"title":"goreleaser shows environment by default","description":"### 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.","state":0,"publishedAt":"2024-05-15T17:17:10+00:00","modifiedAt":"2026-09-10T03:50:00.3691833+00:00","affected":[{"ecosystem":"Go","name":"github.com/goreleaser/goreleaser","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.26.0"},{"kind":"fixed","version":"1.26.1"}]}],"versions":["1.26.0"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/goreleaser/goreleaser/security/advisories/GHSA-f6mm-5fc7-3g3c","https://github.com/goreleaser/goreleaser/pull/4787","https://github.com/goreleaser/goreleaser/commit/22f734e41f7a5111a031a3a4eb714c1b6aa6456b","https://github.com/goreleaser/goreleaser"],"sourceUrl":"https://github.com/advisories/GHSA-f6mm-5fc7-3g3c","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-f6mm-5fc7-3g3c","identifiers":["GHSA-f6mm-5fc7-3g3c","GO-2024-2860"]},"retained":false,"historicalAffected":[]}],"coverage":[]}