Vulnerability: Arbitrary Code Execution via go.mod Toolchain Directive

Vulnerability: Arbitrary Code Execution via go.mod Toolchain Directive

CVE-2023-39320 · CRITICAL Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

Learn more about our Web Application Penetration Testing UK.