CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2018-16873

In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag and the import path of a malicious Go package, or a package that imports it directly or indirectly. Specifically, it is only vulnerable in GOPATH mode, but not in module mode (the distinction is documented at https://golang.org/cmd/go/#hdr-Module_aware_go_get). Using custom domains, it's possible to arrange things so that a Git repository is cloned to a folder named ".git" by using a vanity import path that ends with "/.git". If the Git repository root contains a "HEAD" file, a "config" file, an "objects" directory, a "refs" directory, with some work to ensure the proper ordering of operations, "go get -u" can be tricked into considering the parent directory as a repository root, and running Git commands on it. That will use the "config" file in the original Git repository root for its configuration, and if that config file contains malicious commands, they will execute on the system running "go get -u".
Publish Date : 2018-12-14 Last Update Date : 2019-06-03
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
6.8
Confidentiality Impact Partial (There is considerable informational disclosure.)
Integrity Impact Partial (Modification of some system files or information is possible, but the attacker does not have control over what can be modified, or the scope of what the attacker can affect is limited.)
Availability Impact Partial (There is reduced performance or interruptions in resource availability.)
Access Complexity Medium (The access conditions are somewhat specialized. Some preconditions must be satistified to exploit)
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access None
Vulnerability Type(s) Execute Code
CWE ID 20

- Products Affected By CVE-2018-16873

# Product Type Vendor Product Version Update Edition Language
1 Application Golang GO 1.0 Version Details Vulnerabilities
2 Application Golang GO 1.0.1 Version Details Vulnerabilities
3 Application Golang GO 1.0.2 Version Details Vulnerabilities
4 Application Golang GO 1.0.3 Version Details Vulnerabilities
5 Application Golang GO 1.1 RC2 Version Details Vulnerabilities
6 Application Golang GO 1.1 RC3 Version Details Vulnerabilities
7 Application Golang GO 1.1 - Version Details Vulnerabilities
8 Application Golang GO 1.1.1 Version Details Vulnerabilities
9 Application Golang GO 1.1.2 Version Details Vulnerabilities
10 Application Golang GO 1.2 RC2 Version Details Vulnerabilities
11 Application Golang GO 1.2 RC3 Version Details Vulnerabilities
12 Application Golang GO 1.2 RC4 Version Details Vulnerabilities
13 Application Golang GO 1.2 RC5 Version Details Vulnerabilities
14 Application Golang GO 1.2 - Version Details Vulnerabilities
15 Application Golang GO 1.2.1 Version Details Vulnerabilities
16 Application Golang GO 1.2.2 Version Details Vulnerabilities
17 Application Golang GO 1.3 - Version Details Vulnerabilities
18 Application Golang GO 1.3 Beta1 Version Details Vulnerabilities
19 Application Golang GO 1.3 Beta2 Version Details Vulnerabilities
20 Application Golang GO 1.3 RC1 Version Details Vulnerabilities
21 Application Golang GO 1.3 RC2 Version Details Vulnerabilities
22 Application Golang GO 1.3.1 Version Details Vulnerabilities
23 Application Golang GO 1.3.2 Version Details Vulnerabilities
24 Application Golang GO 1.3.3 Version Details Vulnerabilities
25 Application Golang GO 1.4 RC1 Version Details Vulnerabilities
26 Application Golang GO 1.4 RC2 Version Details Vulnerabilities
27 Application Golang GO 1.4 - Version Details Vulnerabilities
28 Application Golang GO 1.4 Beta1 Version Details Vulnerabilities
29 Application Golang GO 1.4.1 Version Details Vulnerabilities
30 Application Golang GO 1.4.2 Version Details Vulnerabilities
31 Application Golang GO 1.4.3 Version Details Vulnerabilities
32 Application Golang GO 1.5 Beta1 Version Details Vulnerabilities
33 Application Golang GO 1.5 Beta2 Version Details Vulnerabilities
34 Application Golang GO 1.5 Beta3 Version Details Vulnerabilities
35 Application Golang GO 1.5 RC1 Version Details Vulnerabilities
36 Application Golang GO 1.5 - Version Details Vulnerabilities
37 Application Golang GO 1.5.1 Version Details Vulnerabilities
38 Application Golang GO 1.5.2 Version Details Vulnerabilities
39 Application Golang GO 1.5.3 Version Details Vulnerabilities
40 Application Golang GO 1.5.4 Version Details Vulnerabilities
41 Application Golang GO 1.6 Beta1 Version Details Vulnerabilities
42 Application Golang GO 1.6 Beta2 Version Details Vulnerabilities
43 Application Golang GO 1.6 RC1 Version Details Vulnerabilities
44 Application Golang GO 1.6 RC2 Version Details Vulnerabilities
45 Application Golang GO 1.6 Version Details Vulnerabilities
46 Application Golang GO 1.6 - Version Details Vulnerabilities
47 Application Golang GO 1.6.1 Version Details Vulnerabilities
48 Application Golang GO 1.6.2 Version Details Vulnerabilities
49 Application Golang GO 1.6.3 Version Details Vulnerabilities
50 Application Golang GO 1.6.4 Version Details Vulnerabilities
51 Application Golang GO 1.7 RC1 Version Details Vulnerabilities
52 Application Golang GO 1.7 RC2 Version Details Vulnerabilities
53 Application Golang GO 1.7 RC3 Version Details Vulnerabilities
54 Application Golang GO 1.7 - Version Details Vulnerabilities
55 Application Golang GO 1.7 RC4 Version Details Vulnerabilities
56 Application Golang GO 1.7 Beta1 Version Details Vulnerabilities
57 Application Golang GO 1.7 RC5 Version Details Vulnerabilities
58 Application Golang GO 1.7 Beta2 Version Details Vulnerabilities
59 Application Golang GO 1.7 RC6 Version Details Vulnerabilities
60 Application Golang GO 1.7.1 Version Details Vulnerabilities
61 Application Golang GO 1.7.2 Version Details Vulnerabilities
62 Application Golang GO 1.7.3 Version Details Vulnerabilities
63 Application Golang GO 1.7.4 Version Details Vulnerabilities
64 Application Golang GO 1.7.5 Version Details Vulnerabilities
65 Application Golang GO 1.7.6 Version Details Vulnerabilities
66 Application Golang GO 1.8 RC2 Version Details Vulnerabilities
67 Application Golang GO 1.8 RC3 Version Details Vulnerabilities
68 Application Golang GO 1.8 - Version Details Vulnerabilities
69 Application Golang GO 1.8 Beta1 Version Details Vulnerabilities
70 Application Golang GO 1.8 Beta2 Version Details Vulnerabilities
71 Application Golang GO 1.8 RC1 Version Details Vulnerabilities
72 Application Golang GO 1.8.1 Version Details Vulnerabilities
73 Application Golang GO 1.8.2 Version Details Vulnerabilities
74 Application Golang GO 1.8.3 Version Details Vulnerabilities
75 Application Golang GO 1.8.4 Version Details Vulnerabilities
76 Application Golang GO 1.8.5 - Version Details Vulnerabilities
77 Application Golang GO 1.8.5 RC4 Version Details Vulnerabilities
78 Application Golang GO 1.8.5 RC5 Version Details Vulnerabilities
79 Application Golang GO 1.8.6 Version Details Vulnerabilities
80 Application Golang GO 1.8.7 Version Details Vulnerabilities
81 Application Golang GO 1.9 - Version Details Vulnerabilities
82 Application Golang GO 1.9 Beta1 Version Details Vulnerabilities
83 Application Golang GO 1.9 Beta2 Version Details Vulnerabilities
84 Application Golang GO 1.9 RC1 Version Details Vulnerabilities
85 Application Golang GO 1.9 RC2 Version Details Vulnerabilities
86 Application Golang GO 1.9.1 Version Details Vulnerabilities
87 Application Golang GO 1.9.2 Version Details Vulnerabilities
88 Application Golang GO 1.9.3 Version Details Vulnerabilities
89 Application Golang GO 1.9.4 Version Details Vulnerabilities
90 Application Golang GO 1.9.5 Version Details Vulnerabilities
91 Application Golang GO 1.9.6 Version Details Vulnerabilities
92 Application Golang GO 1.9.7 Version Details Vulnerabilities
93 Application Golang GO 1.10 RC2 Version Details Vulnerabilities
94 Application Golang GO 1.10 - Version Details Vulnerabilities
95 Application Golang GO 1.10 Beta1 Version Details Vulnerabilities
96 Application Golang GO 1.10 Beta2 Version Details Vulnerabilities
97 Application Golang GO 1.10 RC1 Version Details Vulnerabilities
98 Application Golang GO 1.10.1 Version Details Vulnerabilities
99 Application Golang GO 1.10.2 Version Details Vulnerabilities
100 Application Golang GO 1.10.3 Version Details Vulnerabilities
101 Application Golang GO 1.10.4 Version Details Vulnerabilities
102 Application Golang GO 1.10.5 Version Details Vulnerabilities
103 Application Golang GO 1.11.0 RC2 Version Details Vulnerabilities
104 Application Golang GO 1.11.0 - Version Details Vulnerabilities
105 Application Golang GO 1.11.0 Beta1 Version Details Vulnerabilities
106 Application Golang GO 1.11.0 Beta2 Version Details Vulnerabilities
107 Application Golang GO 1.11.0 Beta3 Version Details Vulnerabilities
108 Application Golang GO 1.11.0 RC1 Version Details Vulnerabilities
109 Application Golang GO 1.11.1 Version Details Vulnerabilities
110 Application Golang GO 1.11.2 Version Details Vulnerabilities
111 OS Opensuse Leap 42.3 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Golang GO 110
Opensuse Leap 1

- References For CVE-2018-16873

http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00015.html
SUSE openSUSE-SU-2019:1506
http://www.securityfocus.com/bid/106226
BID 106226 Golang Go CVE-2018-16873 Remote Code Execution Vulnerability Release Date:2018-12-13
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16873 CONFIRM
https://security.gentoo.org/glsa/201812-09
GENTOO GLSA-201812-09
https://groups.google.com/forum/?pli=1#!topic/golang-announce/Kw31K8G7Fi0
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00060.html
SUSE openSUSE-SU-2019:1444
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00011.html
SUSE openSUSE-SU-2019:1499
http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00044.html
SUSE openSUSE-SU-2019:1079

- Metasploit Modules Related To CVE-2018-16873

There are not any metasploit modules related to this CVE entry (Please visit www.metasploit.com for more information)


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.