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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | golang-1.24 | 1.24~rc2-1 | DEBIAN-CVE-2024-45340 |
| Go | toolchain | 1.24.0-rc.2 | GO-2025-3383 |
| Ubuntu:22.04:LTS | golang-1.18 | no fix listed | UBUNTU-CVE-2024-45340 |
| Ubuntu:22.04:LTS | golang-1.20 | no fix listed | UBUNTU-CVE-2024-45340 |
| Ubuntu:22.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2024-45340 |
| Ubuntu:24.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2024-45340 |
| Ubuntu:25.10 | golang-1.23 | no fix listed | UBUNTU-CVE-2024-45340 |
| Ubuntu:25.10 | golang-1.24 | no fix listed | UBUNTU-CVE-2024-45340 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Go toolchain | cmd/go | 1.24.0-0 – before 1.24.0-rc.2 |