CVE-2024-23840
JSON

5.5medium

`goreleaser release --debug` shows secrets

Severity
5.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.32% (higher than 27% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-h3q2-8whx-c29hGO-2024-2482

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.

Affected

Product or packageVersionsReported by
goreleaser goreleaser1.23.0CVE List, NVD
github.com/goreleaser/goreleaser (Go)from 1.23.0 before 1.24.0GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-532

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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
Go Vulnerability Database

Secret values can be printed to the --debug log when using a a custom publisher.

NVD (es)

GoReleaser crea archivos binarios de Go para varias plataformas, crea una versi贸n de GitHub y luego env铆a una f贸rmula Homebrew a un repositorio tap. El registro `goreleaser release --debug` muestra los valores secretos utilizados en el editor personalizado. Esta vulnerabilidad se solucion贸 en 1.24.0.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2024-23840 changed 2025-05-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-h3q2-8whx-c29h changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2482 changed 2026-02-04CC-BY-4.0
NVDCVE-2024-23840 changed 2026-06-17Public domain