PT-2020-16999 · Google+4 · Go+4
Imre Rad
·
Published
2020-11-16
·
Updated
2024-06-15
·
CVE-2020-28367
CVSS v3.1
7.5
High
| Vector | AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Go versions prior to 1.14.12
Go versions prior to 1.15.5
Description
The issue allows arbitrary code execution at build time via malicious gcc flags specified via a #cgo directive. This can occur when running commands that build untrusted code, such as go get on a malicious package. The problem is caused by the injection of malicious flags through a #cgo directive, enabling argument injection.
Recommendations
For Go versions prior to 1.14.12, update to version 1.14.12 or later to resolve the issue.
For Go versions prior to 1.15.5, update to version 1.15.5 or later to resolve the issue.
As a temporary workaround, consider restricting the use of the
#cgo directive until a patch is applied. Avoid using malicious gcc flags specified via a #cgo directive in the affected API endpoints until the issue is resolved.Exploit
Fix
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Centos
Go
Red Hat
Suse