Vulnerability Details : CVE-2020-28367
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.
Products affected by CVE-2020-28367
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-28367
2.14%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 90 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-28367
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.1
|
MEDIUM | AV:N/AC:H/Au:N/C:P/I:P/A:P |
4.9
|
6.4
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
1.6
|
5.9
|
NIST |
CWE ids for CVE-2020-28367
-
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.Assigned by:
- cve@mitre.org (Secondary)
- nvd@nist.gov (Primary)
References for CVE-2020-28367
-
https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561
da7aa86917811a571e6634b45a457f918b8e6561 - go - Git at GoogleProduct
-
https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html
[SECURITY] [DLA 3395-1] golang-1.11 security update
-
https://pkg.go.dev/vuln/GO-2022-0476
GO-2022-0476 - Go PackagesVendor Advisory
-
https://go.dev/issue/42556
cmd/go: improper validation of cgo flags can lead to remote code execution at build time · Issue #42556 · golang/go · GitHubIssue Tracking;Patch;Third Party Advisory
-
https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM
[security] Go 1.15.5 and Go 1.14.12 are releasedMailing List;Third Party Advisory
-
https://go.dev/cl/267277
cmd/go: in cgoflags, permit -DX1, prohibit -Wp,-D,opt (Ibfc4dfdd) · Gerrit Code ReviewProduct;Release Notes
Jump to