Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2024-23840 — goreleaser

🟡 CVSS 5.5 — Medium ✅ No Known Exploit CWE-532 NVD
5.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

goreleaser release --debug shows secrets

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

```

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.

Weakness class

CVE-2024-23840 is classified as CWE-532: Insertion of Sensitive Information into Log File. Sensitive values are written to logs, which are typically kept longer and read more widely than the data warrants.

Affected software

CVE-2024-23840 is recorded against 2 packages.

  • github.com/goreleaser/goreleaser
  • goreleaser

Timeline and source

Published on 30 January 2024 and last revised on 4 February 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)

Details

Severity Medium
CVSS Score 5.5
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CWE CWE-532
Public Exploit ✅ No
Source NVD
Published 2024-01-30
Updated 2026-08-20
Modified 2026-02-04

Affected Packages

Software From version Fixed in
github.com/goreleaser/goreleaser
goreleaser

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in goreleaser

CVE-2024-23840 is rated CVSS 5.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.