| { |
| "schema_version": "1.3.1", |
| "id": "GO-2022-0476", |
| "modified": "0001-01-01T00:00:00Z", |
| "published": "2022-07-28T17:24:43Z", |
| "aliases": [ |
| "CVE-2020-28367" |
| ], |
| "summary": "Arbitrary code execution via the go command with cgo in cmd/go", |
| "details": "The go command may execute arbitrary code at build time when cgo is in use. This may occur when running go get on a malicious package, or any other command that builds untrusted code.\n\nThis can be caused by malicious gcc flags specified via a cgo directive.", |
| "affected": [ |
| { |
| "package": { |
| "name": "toolchain", |
| "ecosystem": "Go" |
| }, |
| "ranges": [ |
| { |
| "type": "SEMVER", |
| "events": [ |
| { |
| "introduced": "0" |
| }, |
| { |
| "fixed": "1.14.12" |
| }, |
| { |
| "introduced": "1.15.0-0" |
| }, |
| { |
| "fixed": "1.15.5" |
| } |
| ] |
| } |
| ], |
| "ecosystem_specific": { |
| "imports": [ |
| { |
| "path": "cmd/go", |
| "symbols": [ |
| "validCompilerFlags" |
| ] |
| } |
| ] |
| } |
| } |
| ], |
| "references": [ |
| { |
| "type": "FIX", |
| "url": "https://go.dev/cl/267277" |
| }, |
| { |
| "type": "FIX", |
| "url": "https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561" |
| }, |
| { |
| "type": "REPORT", |
| "url": "https://go.dev/issue/42556" |
| }, |
| { |
| "type": "WEB", |
| "url": "https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM" |
| } |
| ], |
| "credits": [ |
| { |
| "name": "Imre Rad" |
| } |
| ], |
| "database_specific": { |
| "url": "https://pkg.go.dev/vuln/GO-2022-0476" |
| } |
| } |