CVE-2018-16873 Details
Description
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".
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| golang go | < 1.10.6 >= 1.11.0, < 1.11.3 |
CPE
Remediation
| |
| opensuse backports sle | 15.0 - |
CPE
Remediation
| |
| opensuse leap | 15.0 15.1 42.3 |
CPE
Remediation
| |
| suse linux enterprise server | 12 - |
CPE
Remediation
| |
| debian debian linux | 9.0 |
CPE
Remediation
| |
Change History
17 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Mar 25, 2021 | Modified Analysis | [email protected] |
| Mar 13, 2021 | CVE Modified | [email protected] |
| Apr 26, 2020 | CVE Modified | [email protected] |
| Oct 9, 2019 | CVE Modified | [email protected] |
| Jul 14, 2019 | CVE Modified | [email protected] |
| Jun 3, 2019 | CVE Modified | [email protected] |
| Jun 3, 2019 | CVE Modified | [email protected] |
| May 27, 2019 | CVE Modified | [email protected] |
| Apr 16, 2019 | Modified Analysis | [email protected] |
| Mar 30, 2019 | CVE Modified | [email protected] |
| Feb 6, 2019 | Initial Analysis | [email protected] |
| Dec 22, 2018 | CVE Modified | [email protected] |
| Dec 18, 2018 | CVE Modified | [email protected] |