Advisory

GO-2023-2383

Also known as: BIT-golang-2023-45285, CVE-2023-45285

Summary

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

Details

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

Severity

Not rated by the source.

Dates

Published
2023-12-06 16:22 UTC
Modified
2026-02-04 02:22 UTC

Affected packages and fixes

toolchain

Go · All systems

Affected

  • introduced 0, fixed 1.20.12, introduced 1.21.0-0, fixed 1.21.5 (semver)

Fixed versions

1.20.12, 1.21.5

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences