# GHSA-f6mm-5fc7-3g3c: goreleaser shows environment by default

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-15T17:17:10.000Z
- Modified: 2026-09-10T03:50:00.369Z
- Also known as: GO-2024-2860
- Related: CGA-gfwm-j5mw-793p
- Weaknesses: CWE-532

## Description

### Summary
Since #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.

### PoC
* Create a Go project with dependencies, do not pull them yet (or run goreleaser later in a container, or delete `$GOPATH/pkg`).
* Make sure to have secrets set in the environment
* Make sure to not have `go mod tidy` in a before hook
* Run `goreleaser release --clean`
* Go prints lots of `go: downloading ...` lines, which triggers the "if output not empty, log it" line, which includes the environment.

### Impact
Credentials and tokens are leaked.

(As written by GitHub Advisory Database.)

## Affected

- github.com/goreleaser/goreleaser (Go): from 1.26.0 before 1.26.1

## References

- <https://github.com/goreleaser/goreleaser/security/advisories/GHSA-f6mm-5fc7-3g3c> (advisory, web)
- <https://github.com/goreleaser/goreleaser/pull/4787> (fix, web)
- <https://github.com/goreleaser/goreleaser/commit/22f734e41f7a5111a031a3a4eb714c1b6aa6456b> (fix, web)
- <https://github.com/goreleaser/goreleaser> (package)

## Sources

- GitHub Advisory Database: [GHSA-f6mm-5fc7-3g3c](https://github.com/advisories/GHSA-f6mm-5fc7-3g3c), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2860](https://pkg.go.dev/vuln/GO-2024-2860), CC-BY-4.0, modified 2026-02-04

---

Page: https://cve.day/GHSA-f6mm-5fc7-3g3c · Whole record: https://cve.day/GHSA-f6mm-5fc7-3g3c.json · Rebuilt by cve.day 2026-11-25T22:56:23.747Z
