{ "dataType": "CVE_RECORD", "dataVersion": "5.1", "cveMetadata": { "state": "PUBLISHED", "cveId": "CVE-2020-28366", "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc", "assignerShortName": "Go", "dateUpdated": "2024-08-04T16:33:58.955Z", "dateReserved": "2020-11-09T00:00:00.000Z", "datePublished": "2020-11-18T00:00:00.000Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc", "shortName": "Go", "dateUpdated": "2023-06-12T19:04:21.017Z" }, "title": "Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo", "descriptions": [ { "lang": "en", "value": "Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows arbitrary code execution at build time via a malicious unquoted symbol name in a linked object file." } ], "affected": [ { "vendor": "Go toolchain", "product": "cmd/go", "collectionURL": "https://pkg.go.dev", "packageName": "cmd/go", "versions": [ { "version": "0", "lessThan": "1.14.12", "status": "affected", "versionType": "semver" }, { "version": "1.15.0-0", "lessThan": "1.15.5", "status": "affected", "versionType": "semver" } ], "programRoutines": [ { "name": "Builder.cgo" } ], "defaultStatus": "unaffected" }, { "vendor": "Go toolchain", "product": "cmd/cgo", "collectionURL": "https://pkg.go.dev", "packageName": "cmd/cgo", "versions": [ { "version": "0", "lessThan": "1.14.12", "status": "affected", "versionType": "semver" }, { "version": "1.15.0-0", "lessThan": "1.15.5", "status": "affected", "versionType": "semver" } ], "programRoutines": [ { "name": "dynimport" } ], "defaultStatus": "unaffected" } ], "problemTypes": [ { "descriptions": [ { "lang": "en", "description": "CWE-94: Improper Control of Generation of Code ('Code Injection')" } ] } ], "references": [ { "url": "https://go.dev/cl/269658" }, { "url": "https://go.googlesource.com/go/+/062e0e5ce6df339dc26732438ad771f73dbf2292" }, { "url": "https://go.dev/issue/42559" }, { "url": "https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM" }, { "url": "https://pkg.go.dev/vuln/GO-2022-0475" } ], "credits": [ { "lang": "en", "value": "Chris Brown (Tempus Ex)" } ] }, "adp": [ { "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2024-08-04T16:33:58.955Z" }, "title": "CVE Program Container", "references": [ { "url": "https://go.dev/cl/269658", "tags": [ "x_transferred" ] }, { "url": "https://go.googlesource.com/go/+/062e0e5ce6df339dc26732438ad771f73dbf2292", "tags": [ "x_transferred" ] }, { "url": "https://go.dev/issue/42559", "tags": [ "x_transferred" ] }, { "url": "https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM", "tags": [ "x_transferred" ] }, { "url": "https://pkg.go.dev/vuln/GO-2022-0475", "tags": [ "x_transferred" ] } ] } ] } }