#VU11851 OS command execution in Go programming language - CVE-2018-7187


Vulnerability identifier: #VU11851

Vulnerability risk: High

CVSSv4.0: 6.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2018-7187

CWE-ID: CWE-78

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Go programming language
Universal components / Libraries / Scripting languages

Vendor: Google

Description
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The weakness exists in the "go get" implementation due to insufficient validation of the import path (get/vcs.go only checks for "://" anywhere in the string) when the -insecure command-line option is used. A remote attacker can trick the victim into visiting a specially crafted website, inject OS commands and execute arbitrary code.

Mitigation
Install update from vendor's website.

Vulnerable software versions

Go programming language: 1.9.4


External links
https://github.com/golang/go/issues/23867


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability