CVE-2024-23840 `goreleaser release --debug` shows secrets

Medium 5.5 Published Updated

Enabling debug mode in GoReleaser exposes secret values in logs, allowing attackers with log access to steal sensitive credentials.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-23840?

CVE-2024-23840 is a medium-severity vulnerability in goreleaser, published on 30 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

GoReleaser builds Go binaries for several platforms, creates a GitHub release and then pushes a Homebrew formula to a tap repository. `goreleaser release --debug` log shows secret values used in the in the custom publisher. This vulnerability is fixed in 1.24.0.

Weakness: CWE-532

Which versions are affected by CVE-2024-23840?

3 open source packages ship an affected version, including github.com/goreleaser/goreleaser. It affects 1 product.

PackageAffectedFixed in
github.com/goreleaser/goreleaser GoFrom 1.23.01.24.0
github.com/goreleaser/goreleaser GoFrom 1.23.01.24.0
github.com/goreleaser/goreleaser GoFrom 1.23.01.24.0

Products include Goreleaser Goreleaser.

How do I fix CVE-2024-23840?

Upgrade github.com/goreleaser/goreleaser to 1.24.0 or later.

Is CVE-2024-23840 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-23840 exists.

Sources

Also known as GHSA-h3q2-8whx-c29h, GO-2024-2482.

Is CVE-2024-23840 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free