CVE-2023-39320
Arbitrary code execution via go.mod toolchain directive in cmd/go
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
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.
La directiva de cadena de herramientas go.mod, introducida en Go 1.21, se puede aprovechar para ejecutar scripts y binarios relativos a la raíz del módulo cuando el comando "go" se ejecutó dentro del módulo. Esto se aplica a los módulos descargados utilizando el comando "go" desde el proxy del módulo, así como a los módulos descargados directamente mediante el software VCS.
Multiple vulnerabilities have been discovered in Go, the worst of which could lead to remote code execution. Versions greater than or equal to 1.20.10 are affected.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2023-07-27 CVE Reserved
- 2023-09-08 CVE Published
- 2024-11-12 First Exploit
- 2025-02-13 CVE Updated
- 2025-03-30 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-94: Improper Control of Generation of Code ('Code Injection')
CAPEC
References (7)
URL | Tag | Source |
---|---|---|
https://go.dev/issue/62198 | Issue Tracking | |
https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ | Release Notes | |
https://security.gentoo.org/glsa/202311-09 |
|
|
https://security.netapp.com/advisory/ntap-20231020-0004 | Third Party Advisory |
|
URL | Date | SRC |
---|---|---|
https://github.com/ayrustogaru/cve-2023-39320 | 2024-11-12 |
URL | Date | SRC |
---|---|---|
https://go.dev/cl/526158 | 2023-11-25 |
URL | Date | SRC |
---|---|---|
https://pkg.go.dev/vuln/GO-2023-2042 | 2023-11-25 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Golang Search vendor "Golang" | Go Search vendor "Golang" for product "Go" | >= 1.21.0 < 1.21.1 Search vendor "Golang" for product "Go" and version " >= 1.21.0 < 1.21.1" | - |
Affected
|