GO-2023-2042

Arbitrary code execution via go.mod toolchain directive in cmd/go

En bref

Publiée
Mise à jour
CVE
CVE-2023-39320
Alias
BIT-golang-2023-39320

Description

The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module. This applies to modules downloaded using the "go" command from the module proxy, as well as modules downloaded directly using VCS software.

Paquets affectés

PaquetVersions
Go · toolchainintroduced 1.21.0-0, fixed 1.21.1

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database