{"id":"CVE-2023-39320","url":"https://www.cyber-defence.io/tools/cve/CVE-2023-39320","generatedAt":"2026-10-27T23:58:35.136Z","title":"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.","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.","published":"2023-09-08T17:15:28.000Z","lastModified":"2026-06-17T06:12:01.000Z","status":"Modified","sourceIdentifier":"security@golang.org","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-94"],"affected":["golang/go"],"epss":{"score":0.01757,"percentile":0.77797,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (1.76%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://go.dev/cl/526158","tags":["Patch"],"source":"security@golang.org"},{"url":"https://go.dev/issue/62198","tags":["Issue Tracking"],"source":"security@golang.org"},{"url":"https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ","tags":["Release Notes"],"source":"security@golang.org"},{"url":"https://pkg.go.dev/vuln/GO-2023-2042","tags":["Vendor Advisory"],"source":"security@golang.org"},{"url":"https://security.gentoo.org/glsa/202311-09","source":"security@golang.org"},{"url":"https://security.netapp.com/advisory/ntap-20231020-0004/","tags":["Third Party Advisory"],"source":"security@golang.org"},{"url":"https://go.dev/cl/526158","tags":["Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://go.dev/issue/62198","tags":["Issue Tracking"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ","tags":["Release Notes"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://pkg.go.dev/vuln/GO-2023-2042","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202311-09","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20231020-0004/","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-39320","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}