CVE-2023-39320
criticalpriority · attend · 50EPSS 0.018 · 78 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- ayrustogaru/cve-2023-39320ayrustogaru/cve-2023-39320PoC · poc_in_github
affected products (30)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-2280Golang Go: Mehrere SchwachstellenDeutsch2023-09-06csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Golang Go ausnutzen, um einen Cross-Site Scripting Angriff durchzuführen, Code auszuführen oder einen Denial of Service zu verursachen.
- BIT-golang-2023-39320Arbitrary code execution via go.mod toolchain directive in cmd/go2024-03-06vendor · osvUS
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.
- GO-2023-2042Arbitrary code execution via go.mod toolchain directive in cmd/go2023-09-07vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
- CNNVD-202309-669cnnvd
- EUVD-2023-43052enisa_euvd
- BDU:2023-05718fstec_bdu
- GHSA-rxv8-v965-v333enisa_euvd
- BIT-golang-2023-39320osv
- GO-2023-2042osv
sources
Which sources assert this record, and when.
references (20)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-39320/cnnvd
- https://github.com/golang/go/issues/62198Patchcnnvd
- https://go.dev/cl/526158cnnvd
- https://go.dev/issue/62198cnnvd
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJcnnvd
- https://pkg.go.dev/vuln/GO-2023-2042cnnvd
- https://security.netapp.com/advisory/ntap-20231020-0004/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.6869cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan