NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
MEDIUM severity

CVE-2024-23840 β€” goreleaser

MEDIUMFix: goreleaser/goreleaser@d5b6a53

CVE-2024-23840 is a medium-severity (CVSS 5.5) CWE-532 vulnerability in github.com/goreleaser/goreleaser. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for github.com/goreleaser/goreleaser β€” see the affected versions and patch details below.

`goreleaser release --debug` shows secrets

Also known asGHSA-h3q2-8whx-c29hGO-2024-2482
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
1 known
Exploitation data as of Oct 31, 2026 Β· OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.

Exploitation and automatability from CISA’s SSVC triage for CVE-2024-23840.

EPSS Exploitation Probability

via FIRST.org β†—
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs25th percentile β€” riskier than 25% of all scored CVEsHighest risk
0.00%0.27%0.55%0.82%0.1%0.3%May 26Sep 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐹github.com/goreleaser/goreleaser

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages β€” download data is not available via public APIs for these ecosystems.

Description

Summary

Hello πŸ‘‹

goreleaser release --debug log shows secret values used in the in the custom publisher.

How to reproduce the issue:

  • Define a custom publisher as the one below. Make sure to provide a custom script to the cmd field and to provide a secret to env
#.goreleaser.yml 
publishers:
  - name: my-publisher
  # IDs of the artifacts we want to sign
    ids:
      - linux_archives
      - linux_package
    cmd: "./build/package/linux_notarize.sh"
    env:
      - VERSION={{ .Version }}
      - SECRET_1={{.Env.SECRET_1}}
      - SECRET_2={{.Env.SECRET_2}}
  • run goreleaser release --debug

You should see your secret value in the gorelease log. The log shows also the GITHUB_TOKEN

Example:

running                                        cmd= ....
SECRET_1=secret_value

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/goreleaser/goreleaserβ‰₯ 1.23.0&&< 1.24.01.24.0go get github.com/goreleaser/goreleaser@v1.24.0

Affected Products

1 product Β· 1 configurations
Application
goreleasergoreleaser
1 version
1.23.0
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/goreleaser/goreleaser, including transitive dependencies β€” a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update github.com/goreleaser/goreleaser to 1.24.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range β€” O3 confirms CVE-2024-23840 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below β€” it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

Red Hat rates this issue as having a Moderate impact since it requires a malicious user to have direct access to the GoReleaser commands by inserting the --debug flag and consuming the values from the logs. This normally requires an environment that is already compromised.

Workaround published by Red Hat
No mitigation is yet available for this vulnerability despite having control of the --debug and where the logs are located.
Source: Red Hat security advisory for CVE-2024-23840 (CC BY 4.0)

Frequently Asked Questions

### Summary Hello πŸ‘‹ `goreleaser release --debug` log shows secret values used in the in the custom publisher. How to reproduce the issue: - Define a custom publisher as the one below. Make sure to provide a custom script to the `cmd` field and to provide a secret to `env` ``` #.goreleaser.yml publishers: - name: my-publisher # IDs of the artifacts we want to sign ids: - linux_archives - linux_package cmd: "./build/package/linux_notarize.sh" env: - VERSION={{ .Version }} - SECRET_1={{.Env.SECRET_1}} - SECRET_2={{.Env.SECRET_2}} ``` - run `
O3 Security Β· Impact-Aware SCA

Is CVE-2024-23840 in your dependencies?

Find it across Go, including transitive dependencies.

CVE-2024-23840: goreleaser β€” Fixed in 1.24.0