Arbitrary Code Injection Affecting golang-misc package, versions <0:1.9.4-2.44.amzn1
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-AMZN201803-GOLANGMISC-1711382
- published 27 Sep 2021
- disclosed 7 Feb 2018
How to fix?
Upgrade Amazon-Linux:2018.03 golang-misc to version 0:1.9.4-2.44.amzn1 or higher.
This issue was patched in ALAS-2018-975.
NVD Description
Note: Versions mentioned in the description apply only to the upstream golang-misc package and not the golang-misc package as distributed by Amazon-Linux.
See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.
Go before 1.8.7, Go 1.9.x before 1.9.4, and Go 1.10 pre-releases before Go 1.10rc2 allow "go get" remote command execution during source code build, by leveraging the gcc or clang plugin feature, because -fplugin= and -plugin= arguments were not blocked.
References
- https://github.com/golang/go/issues/23672
- https://groups.google.com/forum/#!topic/golang-nuts/Gbhh1NxAjMU
- https://groups.google.com/forum/#!topic/golang-nuts/sprOaQ5m3Dk
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6574
- https://www.debian.org/security/2019/dsa-4380
- https://github.com/KINGSABRI/CVE-in-Ruby/tree/master/CVE-2018-6574
- https://access.redhat.com/errata/RHSA-2018:0878
- https://access.redhat.com/errata/RHSA-2018:1304
- https://groups.google.com/forum/#%21topic/golang-nuts/Gbhh1NxAjMU
- https://groups.google.com/forum/#%21topic/golang-nuts/sprOaQ5m3Dk