CVEfocus › CVE database › CVE-2024-45340

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

CVSS 8.8 HighEPSS 1.1% (higher than 66% of CVEs)Published 2025-01-28Updated 2025-01-30Assigner: Go

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.

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
13Fix pending
4Under investigation
8Will not fix
9Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-1.23Not affected
vulnerable_code_not_present
Ubuntu 26.04golang-1.24Not affected
vulnerable_code_not_present
Ubuntu 25.10golang-1.23Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2024-45340
Ubuntu 25.10golang-1.24Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2024-45340
Ubuntu 24.04golang-1.21Under investigationUBUNTU-CVE-2024-45340
Ubuntu 24.04golang-1.22Not affected
vulnerable_code_not_present
Ubuntu 24.04golang-1.23Not affected
vulnerable_code_not_present
Ubuntu 24.04golang-1.24Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 22.04golang-1.17Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.18Under investigationUBUNTU-CVE-2024-45340
Ubuntu 22.04golang-1.20Under investigationUBUNTU-CVE-2024-45340
Ubuntu 22.04golang-1.21Under investigationUBUNTU-CVE-2024-45340
Ubuntu 22.04golang-1.22Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.23Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.24Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.13Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2024-45340
Ubuntu 20.04golang-1.14Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2024-45340
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 20.04golang-1.18Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
Ubuntu 20.04golang-1.20Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2024-45340
Ubuntu 20.04golang-1.21Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2024-45340
Ubuntu 20.04golang-1.22Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2024-45340
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2024-45340
Debian 13golang-1.24Fixed1.24~rc2-1DEBIAN-CVE-2024-45340
Go librarytoolchainFixed1.24.0-rc.2GO-2025-3383

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.