OS Command 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-1712585
- published 27 Sep 2021
- disclosed 16 Feb 2018
Introduced: 16 Feb 2018
CVE-2018-7187 Open this link in a new tabHow 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.
The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import path (get/vcs.go only checks for "://" anywhere in the string), which allows remote attackers to execute arbitrary OS commands via a crafted web site.
References
- https://github.com/golang/go/issues/23867
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7187
- https://www.debian.org/security/2019/dsa-4379
- https://www.debian.org/security/2019/dsa-4380
- https://security.gentoo.org/glsa/201804-12
- https://gist.github.com/SLAYEROWNER/b2a358f13ab267f2e9543bb9f9320ffc
- https://lists.debian.org/debian-lts-announce/2018/02/msg00029.html