blob: 2a7c59b3b55d85be1ff40dd37b19f636be6ce457 [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2022-0203",
"modified": "0001-01-01T00:00:00Z",
"published": "2022-08-09T23:19:00Z",
"aliases": [
"CVE-2018-7187"
],
"summary": "Remote command execution via \"go get\" command with \"-insecure\" option in cmd/go",
"details": "The \"go get\" command is vulnerable to remote code execution.\n\nWhen the -insecure command-line option is used, \"go get\" does not validate the import path (get/vcs.go only checks for \"://\" anywhere in the string), which allows remote attackers to execute arbitrary OS commands via a crafted web site.",
"affected": [
{
"package": {
"name": "toolchain",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.9.5"
},
{
"introduced": "1.10.0-0"
},
{
"fixed": "1.10.1"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "cmd/go"
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://go.dev/cl/94603"
},
{
"type": "FIX",
"url": "https://go.googlesource.com/go/+/c941e27e70c3e06e1011d2dd71d72a7a06a9bcbc"
},
{
"type": "REPORT",
"url": "https://go.dev/issue/23867"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/IkPkOF8JqLs/m/TFBbWHJYAwAJ"
}
],
"credits": [
{
"name": "Arthur Khashaev"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0203",
"review_status": "REVIEWED"
}
}