First published: Fri Feb 16 2018(Updated: )
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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
debian/golang | ||
debian/golang-1.10 | ||
debian/golang-1.7 | ||
Go Programming Language | <1.9.5 | |
Go Programming Language | >=1.10<1.10.1 | |
Debian Debian Linux | =7.0 | |
Debian Debian Linux | =9.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2018-7187 is classified as a high severity vulnerability due to its potential for remote code execution.
To mitigate CVE-2018-7187, it is recommended to upgrade Go to version 1.9.5 or later where this vulnerability has been patched.
CVE-2018-7187 allows attackers to execute arbitrary OS commands via a crafted web address when using the 'go get' command with the -insecure option.
CVE-2018-7187 affects Go versions prior to 1.9.5 and also certain versions in the 1.10 series up to 1.10.1.
The impact of CVE-2018-7187 includes the potential for unauthorized remote command execution, which could compromise the security of affected systems.