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

VectorAV: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 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2018-1655
BDU:2018-00493
CVE-2018-7187
DLA-1294-1
DSA-4379-1
DSA-4380-1
GO-2022-0203
MGASA-2018-0238
OPENSUSE-SU-2018:4302-1
OPENSUSE-SU-2018_1811-1
OPENSUSE-SU-2018_4306-1
OPENSUSE-SU-2024:10802-1
OPENSUSE-SU-2024:10812-1
SUSE-SU-2018:4297-1

Affected Products

Alt Linux
Go
Suse