blob: ad2aa9f37733002d129b1c2a7fc0888469f2dfde [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2023-2042",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2023-39320"
],
"summary": "Arbitrary code execution via go.mod toolchain directive in cmd/go",
"details": "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.",
"affected": [
{
"package": {
"name": "toolchain",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "1.21.0-0"
},
{
"fixed": "1.21.1"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "cmd/go"
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://go.dev/issue/62198"
},
{
"type": "FIX",
"url": "https://go.dev/cl/526158"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ"
}
],
"credits": [
{
"name": "Juho Nurminen of Mattermost"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2023-2042",
"review_status": "REVIEWED"
}
}