CVE-2020-28367

high

Description

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 malicious gcc flags specified via a #cgo directive.

References

https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM

https://pkg.go.dev/vuln/GO-2022-0476

https://go.dev/issue/42556

https://go.dev/cl/267277

https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561

Details

Source: MITRE

Published: 2020-11-18

Updated: 2022-08-10

Type: CWE-88

Risk Information

CVSS v2

Base Score: 5.1

Vector: AV:N/AC:H/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 4.9

Severity: MEDIUM

CVSS v3

Base Score: 7.5

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Impact Score: 5.9

Exploitability Score: 1.6

Severity: HIGH