github.com/goreleaser/goreleaser
Affected
- introduced
1.26.0, fixed1.26.1(semver)
Fixed versions
1.26.1
Fix
- Fixed version
1.26.1go get github.com/goreleaser/[email protected]
Advisory
Also known as: GO-2024-2860
goreleaser shows environment by default
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
$GOPATH/pkg).go mod tidy in a before hookgoreleaser release --cleango: downloading ... lines, which triggers the "if output not empty, log it" line, which includes the environment.Impact
Credentials and tokens are leaked.
Medium Basis: The source's own band: MODERATE
1.26.0, fixed 1.26.1 (semver)1.26.1
1.26.1go get github.com/goreleaser/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0