GO-2023-2042

vendorUSosv

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

view advisory published 2023-09-07Licence: per source

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.

01

describes (1)

Related CVEs.

IDseverity exploitable
CVE-2023-39320UScritical9.8Exploit
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…
02

references

External citations — patches, advisories, analysis.

scry

Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.

Free scan