CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
  What's the CVSS score of your company?
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 : 2021-03-25
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 OS Debian Debian Linux 9.0 * * * Version Details Vulnerabilities
2 Application Golang GO * * * * Version Details Vulnerabilities
3 Application Opensuse Backports Sle 15.0 - * * Version Details Vulnerabilities
4 OS Opensuse Leap 15.0 * * * Version Details Vulnerabilities
5 OS Opensuse Leap 15.1 * * * Version Details Vulnerabilities
6 OS Opensuse Leap 42.3 * * * Version Details Vulnerabilities
7 OS Suse Linux Enterprise Server 12 - * * Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Debian Debian Linux 1
Golang GO 1
Opensuse Backports Sle 1
Opensuse Leap 3
Suse Linux Enterprise Server 1

- References For CVE-2018-16873

https://security.gentoo.org/glsa/201812-09
GENTOO GLSA-201812-09
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00011.html
SUSE openSUSE-SU-2019:1499
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00015.html
SUSE openSUSE-SU-2019:1506
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00060.html
SUSE openSUSE-SU-2019:1444
http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00044.html
SUSE openSUSE-SU-2019:1079
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://groups.google.com/forum/?pli=1#!topic/golang-announce/Kw31K8G7Fi0
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00010.html
SUSE openSUSE-SU-2019:1703
http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00041.html
SUSE openSUSE-SU-2020:0554
https://lists.debian.org/debian-lts-announce/2021/03/msg00015.html
MLIST [debian-lts-announce] 20210313 [SECURITY] [DLA 2592-1] golang-1.8 security update
https://lists.debian.org/debian-lts-announce/2021/03/msg00014.html
MLIST [debian-lts-announce] 20210313 [SECURITY] [DLA 2591-1] golang-1.7 security update

- 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.