CVE-2023-39320
Arbitrary code execution via go.mod toolchain directive in cmd/go
- State
- Published
- Severity
- Not scored
- Published
- Sep 8, 2023
- Updated
- Feb 13, 2025
- Reserved
- Jul 27, 2023
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.
Scores
The record has no CVSS score.
Weaknesses
The record names no weakness.
Affected Products
| Product | Versions |
|---|---|
cmd/goGo toolchain |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.