Vulnerability · Published Jan 28, 2025 · Assigned by Go

CVE-2024-45340GOAUTH credential leak in cmd/go

High 8.8

In plain English

A high-severity security flaw in cmd/go from Go toolchain. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.7%top 46.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Credentials provided via the new GOAUTH feature were not being properly segmented by domain, allowing a malicious server to request credentials they should not have access to. By default, unless otherwise set, this only affected credentials stored in the users .netrc file.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13golang-1.241.24~rc2-1DEBIAN-CVE-2024-45340
Gotoolchain1.24.0-rc.2GO-2025-3383
Ubuntu:22.04:LTSgolang-1.18no fix listedUBUNTU-CVE-2024-45340
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2024-45340
Ubuntu:22.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2024-45340
Ubuntu:24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2024-45340
Ubuntu:25.10golang-1.23no fix listedUBUNTU-CVE-2024-45340
Ubuntu:25.10golang-1.24no fix listedUBUNTU-CVE-2024-45340

Affected products (as reported)

VendorProductVersions
Go toolchain cmd/go 1.24.0-0 – before 1.24.0-rc.2

References