CVE-2020-28367
golang: improper validation of cgo flags can lead to code execution at build time
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-94
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | golang | <1.14.12>=1.15.0, <1.15.5 | 1.14.121.15.5 |
Open a package to see all its vulnerabilities.
Operating systems · 22 fixes
Azure Linux 1 release · 1 package
fixed 1
python-tensorboard
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | python-tensorboard | 0:2.16.2-2.azl3 |
Oracle Linux 1 release · 2 packages
fixed 2
go-toolset
delve
| Release | Package | Fixed in |
|---|---|---|
| 8 | go-toolset +7 | 1.14.12-1.module+el8.3.0+7887+1b2c3dab |
| 8 | delve | 1.4.1-1.0.1.module+el8.3.0+7887+1b2c3dab |
Red Hat 3 releases · 6 packages
wont fix 2
eol 1
fixed 3
golang-docs
cpp
golang
go-toolset-1-14
go-toolset
delve
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| golang-docs +2 | wont fix | — | |
| 7 | cpp +45 | eol | — |
| 7 | golang +2 | wont fix | — |
| 7 | go-toolset-1-14 +9 | 0:1.14.12-1.el7_9 | RHSA-2020:5333 |
| 8 (go-toolset:rhel8) | go-toolset +7 | 0:1.14.12-1.module+el8.3.0+8784+380394dc | RHSA-2020:5493 |
| 8 (go-toolset:rhel8) | delve | 0:1.4.1-1.module+el8.3.0+7840+63dfb1ed | RHSA-2020:5493 |
alpine 4 releases · 1 package
fixed 4
go
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.15.5-r0 |
| 3.23 | go | 1.15.5-r0 |
| 3.24 | go | 1.15.5-r0 |
| edge | go | 1.15.5-r0 |
debian 3 releases · 4 packages
fixed 3
affected 1
golang-1-11
golang-1-15
golang-1-7
golang-1-8
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-1-11 | 1.11.6-1+deb10u6 |
| 11 | golang-1-15 | 1.15.5-1 |
| 9 | golang-1-7 | affected |
| 9 | golang-1-8 | 1.8.1-1+deb9u2 |
openSUSE 1 release · 2 packages
fixed 2
go1-14
go1-15
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-14 +2 | 1.14.15-1.6 | openSUSE-SU-2024:10807-1 |
| Tumbleweed | go1-15 +2 | 1.15.15-1.2 | openSUSE-SU-2024:10808-1 |
ubuntu 3 releases · 2 packages
affected 3
golang-1-10
golang-1-13
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-1-10 +2 | affected |
| 20.04-ESM | golang-1-13 +1 | affected |
| 22.04 | golang-1-13 | affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2020-28367
- go.dev https://go.dev/cl/267277
- go.dev https://go.dev/issue/42556
- go.googlesource.com https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561
- groups.google.com https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM
- groups.google.com https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM/m/fLguyiM2CAAJ
- linux.oracle.com https://linux.oracle.com/cve/CVE-2020-28367.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2020-5493.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2020-28367
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.