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

Published Dec 6, 2023
·
Updated

Command 'go get' may unexpectedly fallback to insecure git in cmd/go

Other sources

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).

MITRE

Affected Software

11 affected componentsFixes available
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19<=1.19.8-2
redhat/golang<1.20.12
1.20.12
redhat/golang 1.21.0<0
0
redhat/golang<1.21.5
1.21.5
Golang Go<1.20.12
Golang Go>=1.21.0-0<1.21.5
Microsoft cbl2 golang 1.18.8-7
Microsoft cbl2 golang 1.21.6-1<1.21.6-1
1.21.6-1
Microsoft cbl2 golang 1.17.13-2
Microsoft cbl2 msft-golang 1.22.3-1.<1.22.3-1.
1.22.3-1.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/golang to a version that resolves this vulnerability.

    Fixed in 1.20.12
  2. Upgrade

    Upgrade redhat/golang 1.21.0 to a version that resolves this vulnerability.

    Fixed in 0
  3. Upgrade

    Upgrade redhat/golang to a version that resolves this vulnerability.

    Fixed in 1.21.5
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.21.6-1
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.22.3-1.

Event History

Dec 6, 2023
CVE Published
via MITRE·04:27 PM
Data Sourced
via MITRE·04:27 PM
DescriptionWeakness
Jan 28, 2024
Data Sourced
via Launchpad·12:30 AM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:41 AM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·08:31 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:31 AM
Affected Software
Updated
via Microsoft·08:31 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2023-45285?

CVE-2023-45285 has a severity rating that indicates a moderate security risk due to potential fallback to the insecure 'git://' protocol.

2

How do I fix CVE-2023-45285?

To fix CVE-2023-45285, upgrade to Go version 1.20.12 or later, and ensure you are not using vulnerable package versions.

3

Which versions of Go are affected by CVE-2023-45285?

CVE-2023-45285 affects Go versions 1.15, 1.19, and versions up to 1.20.12.

4

What happens if I use a module with the '.git' suffix in Go while affected by CVE-2023-45285?

Using a module with the '.git' suffix may cause the system to fall back to the insecure 'git://' protocol if the module is unavailable through secure protocols.

5

Is GOINSECURE relevant for CVE-2023-45285?

Yes, GOINSECURE is not relevant for CVE-2023-45285 as it can still fallback to 'git://' regardless of this setting.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203