{"id":"CVE-2024-23840","aliases":["CVE-2024-23840","GHSA-h3q2-8whx-c29h","GO-2024-2482"],"related":["CGA-89xh-qff3-rh5c"],"kind":"vulnerability","state":"published","title":"`goreleaser release --debug` shows secrets","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nHello 👋 \n\n`goreleaser release --debug` log shows secret values used in the in the custom publisher.\n\n\nHow to reproduce the issue:\n\n- 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` \n\n```\n#.goreleaser.yml \npublishers:\n  - name: my-publisher\n  # IDs of the artifacts we want to sign\n    ids:\n      - linux_archives\n      - linux_package\n    cmd: \"./build/package/linux_notarize.sh\"\n    env:\n      - VERSION={{ .Version }}\n      - SECRET_1={{.Env.SECRET_1}}\n      - SECRET_2={{.Env.SECRET_2}}\n```\n\n- run `goreleaser release --debug`\n\nYou should see your secret value in the gorelease log. The log shows also the `GITHUB_TOKEN`\n\nExample:\n\n```\nrunning                                        cmd= ....\nSECRET_1=secret_value\n```","format":"markdown","source":"ghsa"},{"lang":"en","text":"Secret values can be printed to the --debug log when using a a custom publisher.","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-01-30T16:39:09.284Z","modified":"2026-09-10T03:50:09.335Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-532"],"affected":[{"ranges":[{"version":"1.23.0","status":"affected"}],"vendor":"goreleaser","product":"goreleaser","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.23.0","status":"affected","fixed":"1.24.0"}],"ecosystem":"Go","package":"github.com/goreleaser/goreleaser","purl":"pkg:golang/github.com/goreleaser/goreleaser","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.23.0","status":"affected","fixed":"1.24.0"}],"ecosystem":"Go","package":"github.com/goreleaser/goreleaser","purl":"pkg:golang/github.com/goreleaser/goreleaser","source":"go"},{"ranges":[{"status":"affected","version":"1.23.0"}],"vendor":"goreleaser","product":"goreleaser","cpe":"cpe:2.3:a:goreleaser:goreleaser:1.23.0:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/goreleaser/goreleaser/security/advisories/GHSA-h3q2-8whx-c29h","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/goreleaser/goreleaser/commit/d5b6a533ca1dc3366983d5d31ee2d2b6232b83c0","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23840","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/goreleaser/goreleaser","tags":["package"],"sources":["ghsa"]}],"credits":["@andreaangiolillo","@caarlos0"],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-05-08T20:11:19.005Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-23840","url":"https://www.cve.org/CVERecord?id=CVE-2024-23840","licence":"CVE Terms of Use","modified":"2025-05-29T15:04:48.029Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h3q2-8whx-c29h","url":"https://github.com/advisories/GHSA-h3q2-8whx-c29h","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:09.335Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2482","url":"https://pkg.go.dev/vuln/GO-2024-2482","licence":"CC-BY-4.0","modified":"2026-02-04T04:27:50.038Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-23840","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23840","licence":"Public domain","modified":"2026-06-17T07:13:43.107Z"}],"updatedAt":"2026-11-25T22:58:36.448Z","epss":{"score":0.0032,"percentile":0.27002,"date":"2026-12-01T12:00:22.000Z"}}