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 package | Versions | Reported by |
|---|---|---|
| goreleaser goreleaser | 1.23.0 | CVE List, NVD |
| github.com/goreleaser/goreleaser (Go) | from 1.23.0 before 1.24.0 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
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
cmdfield and to provide a secret toenv
#.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
| https://github.com/goreleaser/goreleaser/security/advisories/GHSA-h3q2-8whx-c29h | advisory, exploit, vendor-advisory, web | |
| https://github.com/goreleaser/goreleaser/commit/d5b6a533ca1dc3366983d5d31ee2d2b6232b83c0 | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-23840 | advisory | |
| https://github.com/goreleaser/goreleaser | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-23840 changed 2025-05-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h3q2-8whx-c29h changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2482 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2024-23840 changed 2026-06-17 | Public domain |