PT-2018-1096 · Go+2 · Go+2
Invizory
·
Published
2018-02-16
·
Updated
2024-06-15
·
CVE-2018-7187
CVSS v2.0
9.3
High
| Vector | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Go version 1.9.4
Description
The issue arises from insufficient input validation in the "go get" implementation when the -insecure command-line option is used. Specifically, it only checks for "://" anywhere in the string, which allows remote attackers to execute arbitrary OS commands via a crafted web site. This can lead to remote code execution.
Recommendations
For Go version 1.9.4, avoid using the -insecure command-line option with the "go get" command until a patch is available. As a temporary workaround, consider validating import paths manually to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
RCE
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Go
Suse