{"id":"CVE-2024-23840","aliases":["GHSA-h3q2-8whx-c29h","GO-2024-2482"],"summary":"`goreleaser release --debug` shows secrets","published_at":"2024-01-30T00:00:00Z","modified_at":"2026-09-10T03:50:09.335473Z","products":[],"rating":{"severity":"medium","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attack_path":"local","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0031999999191612005,"percentile":0.2554999887943268,"date":"2026-11-19T00:00:00Z"},"priority":5,"details":"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_stack":[],"affected_other":[{"ecosystem":"CVE","package":"goreleaser/goreleaser","versions":["1.23.0"],"provider":"cvelistv5","source":"CVE-2024-23840","relation":"self"},{"ecosystem":"Go","package":"github.com/goreleaser/goreleaser","purl":"pkg:golang/github.com/goreleaser/goreleaser","ranges":[{"type":"SEMVER","events":[{"introduced":"1.23.0"},{"fixed":"1.24.0"}]}],"versions":["1.23.0"],"fixed":["1.24.0"],"provider":"osv","source":"GHSA-h3q2-8whx-c29h","relation":"self"},{"ecosystem":"Go","package":"github.com/goreleaser/goreleaser","purl":"pkg:golang/github.com/goreleaser/goreleaser","ranges":[{"type":"SEMVER","events":[{"introduced":"1.23.0"},{"fixed":"1.24.0"}]}],"fixed":["1.24.0"],"provider":"osv","source":"GO-2024-2482","relation":"self"},{"ecosystem":"NVD","package":"goreleaser:goreleaser","versions":["1.23.0"],"provider":"nvd","source":"CVE-2024-23840","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"affected","packages":["openshift-serverless-1/client-kn-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-23840"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2024-23840","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-23840","license":"CC-BY-4.0","published_at":"2024-01-30T16:39:09.284Z","modified_at":"2025-05-29T15:04:48.029Z","summary":"`goreleaser release --debug` shows secrets","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2024-23840"}],"affected":[{"ecosystem":"CVE","package":"goreleaser/goreleaser","versions":["1.23.0"],"provider":"cvelistv5","source":"CVE-2024-23840","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/goreleaser/goreleaser/security/advisories/GHSA-h3q2-8whx-c29h"},{"type":"WEB","url":"https://github.com/goreleaser/goreleaser/commit/d5b6a533ca1dc3366983d5d31ee2d2b6232b83c0"}]},{"provider":"nvd","source_id":"CVE-2024-23840","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23840","severity":[],"affected":[{"ecosystem":"NVD","package":"goreleaser:goreleaser","versions":["1.23.0"],"provider":"nvd","source":"CVE-2024-23840","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-h3q2-8whx-c29h","relation":"self","url":"https://osv.dev/vulnerability/GHSA-h3q2-8whx-c29h","license":"CC-BY-4.0","published_at":"2024-01-30T20:57:52Z","modified_at":"2026-09-10T03:50:09.335473Z","summary":"`goreleaser release --debug` shows secrets","details":"### 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```","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"GHSA-h3q2-8whx-c29h"}],"affected":[{"ecosystem":"Go","package":"github.com/goreleaser/goreleaser","purl":"pkg:golang/github.com/goreleaser/goreleaser","ranges":[{"type":"SEMVER","events":[{"introduced":"1.23.0"},{"fixed":"1.24.0"}]}],"versions":["1.23.0"],"fixed":["1.24.0"],"provider":"osv","source":"GHSA-h3q2-8whx-c29h","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/goreleaser/goreleaser/security/advisories/GHSA-h3q2-8whx-c29h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23840"},{"type":"WEB","url":"https://github.com/goreleaser/goreleaser/commit/d5b6a533ca1dc3366983d5d31ee2d2b6232b83c0"},{"type":"PACKAGE","url":"https://github.com/goreleaser/goreleaser"}]},{"provider":"osv","source_id":"GO-2024-2482","relation":"self","url":"https://osv.dev/vulnerability/GO-2024-2482","license":"CC-BY-4.0","published_at":"2024-02-13T18:22:44Z","modified_at":"2026-02-04T04:27:50.038423Z","summary":"Information leak in github.com/goreleaser/goreleaser","details":"Secret values can be printed to the --debug log when using a a custom publisher.","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/goreleaser/goreleaser","purl":"pkg:golang/github.com/goreleaser/goreleaser","ranges":[{"type":"SEMVER","events":[{"introduced":"1.23.0"},{"fixed":"1.24.0"}]}],"fixed":["1.24.0"],"provider":"osv","source":"GO-2024-2482","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/goreleaser/goreleaser/security/advisories/GHSA-h3q2-8whx-c29h"},{"type":"FIX","url":"https://github.com/goreleaser/goreleaser/commit/d5b6a533ca1dc3366983d5d31ee2d2b6232b83c0"}]},{"provider":"redhat-vex","source_id":"CVE-2024-23840","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2024-23840","license":"CC-BY-4.0","published_at":"2024-01-30T00:00:00Z","modified_at":"2024-02-19T17:32:11Z","summary":"goreleaser: goreleaser release --debug shows secrets","details":"A flaw was found in GoReleaser. This package log shows secret values that are supposed to be hidden when using --debug.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2024-23840"},{"type":"Red Hat","score":"Moderate","source":"CVE-2024-23840"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"affected","packages":["openshift-serverless-1/client-kn-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2024-23840"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-23840.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-23840"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2262014"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-23840"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23840"},{"type":"WEB","url":"https://github.com/goreleaser/goreleaser/security/advisories/GHSA-h3q2-8whx-c29h"}]}],"references":[{"type":"WEB","url":"https://github.com/goreleaser/goreleaser/security/advisories/GHSA-h3q2-8whx-c29h"},{"type":"WEB","url":"https://github.com/goreleaser/goreleaser/commit/d5b6a533ca1dc3366983d5d31ee2d2b6232b83c0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23840"},{"type":"PACKAGE","url":"https://github.com/goreleaser/goreleaser"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-23840.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2024-23840"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2262014"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2024-23840"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2024-23840","url":"https://www.cve.org/CVERecord?id=CVE-2024-23840","license":"CC-BY-4.0","modified_at":"2025-05-29T15:04:48.029Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2024-23840","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23840","relation":"self"},{"provider":"osv","source_id":"GHSA-h3q2-8whx-c29h","url":"https://osv.dev/vulnerability/GHSA-h3q2-8whx-c29h","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:09.335473Z","relation":"self"},{"provider":"osv","source_id":"GO-2024-2482","url":"https://osv.dev/vulnerability/GO-2024-2482","license":"CC-BY-4.0","modified_at":"2026-02-04T04:27:50.038423Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2024-23840","url":"https://access.redhat.com/security/cve/CVE-2024-23840","license":"CC-BY-4.0","modified_at":"2024-02-19T17:32:11Z","relation":"self"}]}
