CVEfocus › CVE database › CVE-2023-45285

CVE-2023-45285Command 'go get' may unexpectedly fallback to insecure git in cmd/go

EPSS 1.0% (higher than 63% of CVEs)Published 2023-12-06Updated 2025-02-13Assigner: Go

Using go get to fetch a module with the ".git" suffix may unexpectedly fallback to the insecure "git://" protocol if the module is unavailable via the secure "https://" and "git+ssh://" protocols, even if GOINSECURE is not set for said module. This only affects users who are not using the module proxy and are fetching modules directly (i.e. GOPROXY=off).

What to do

Fixed builds are available from AlmaLinux, Go, Red Hat, Ubuntu: see the table below for the fixed version per release.

Debian 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

35Fixed
1Fix pending
1Not 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 24.04golang-1.21Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.20Fixed1.20.3-1ubuntu0.1~22.04.1UBUNTU-CVE-2023-45285
Ubuntu 22.04golang-1.21Fixed1.21.1-1~ubuntu22.04.2UBUNTU-CVE-2023-45285
Ubuntu 20.04golang-1.20Fixed1.20.3-1ubuntu0.1~20.04.1UBUNTU-CVE-2023-45285
Ubuntu 20.04golang-1.21Fixed1.21.1-1~ubuntu20.04.2UBUNTU-CVE-2023-45285
Debian 12golang-1.19Fix pendingDEBIAN-CVE-2023-45285
Red Hat Enterprise Linux 9go-toolsetFixed0:1.20.12-1.el9_3RHSA-2024:1131
Red Hat Enterprise Linux 9golangFixed0:1.20.12-1.el9_3RHSA-2024:1131
Red Hat Enterprise Linux 9golang-binFixed0:1.20.12-1.el9_3RHSA-2024:1131
Red Hat Enterprise Linux 9golang-docsFixed0:1.20.12-1.el9_3RHSA-2024:1131
Red Hat Enterprise Linux 9golang-miscFixed0:1.20.12-1.el9_3RHSA-2024:1131
Red Hat Enterprise Linux 9golang-srcFixed0:1.20.12-1.el9_3RHSA-2024:1131
Red Hat Enterprise Linux 9golang-testsFixed0:1.20.12-1.el9_3RHSA-2024:1131
Red Hat Enterprise Linux 8delveFixed0:1.20.2-1.module+el8.9.0+18926+5193682dRHSA-2024:0887
Red Hat Enterprise Linux 8go-toolsetFixed0:1.20.12-1.module+el8.9.0+21033+5795bdf6RHSA-2024:0887
Red Hat Enterprise Linux 8golangFixed0:1.20.12-2.module+el8.9.0+21033+5795bdf6RHSA-2024:0887
Red Hat Enterprise Linux 8golang-binFixed0:1.20.12-2.module+el8.9.0+21033+5795bdf6RHSA-2024:0887
Red Hat Enterprise Linux 8golang-docsFixed0:1.20.12-2.module+el8.9.0+21033+5795bdf6RHSA-2024:0887
Red Hat Enterprise Linux 8golang-miscFixed0:1.20.12-2.module+el8.9.0+21033+5795bdf6RHSA-2024:0887
Red Hat Enterprise Linux 8golang-srcFixed0:1.20.12-2.module+el8.9.0+21033+5795bdf6RHSA-2024:0887
Red Hat Enterprise Linux 8golang-testsFixed0:1.20.12-2.module+el8.9.0+21033+5795bdf6RHSA-2024:0887
AlmaLinux 9go-toolsetFixed1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux 9golangFixed1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux 9golang-binFixed1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux 9golang-docsFixed1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux 9golang-miscFixed1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux 9golang-srcFixed1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux 9golang-testsFixed1.20.12-1.el9_3ALSA-2024:1131
AlmaLinux 8delveFixed1.20.2-1.module_el8.9.0+3642+43318da8ALSA-2024:0887
AlmaLinux 8go-toolsetFixed1.20.12-1.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux 8golangFixed1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux 8golang-binFixed1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux 8golang-docsFixed1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux 8golang-miscFixed1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux 8golang-srcFixed1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
AlmaLinux 8golang-testsFixed1.20.12-2.module_el8.9.0+3728+f1d47c6fALSA-2024:0887
Go librarytoolchainFixed1.20.12GO-2023-2383

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.