High severity · published Dec 14, 2018
CVE-2018-16874
In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to directory traversal when executed with the import path of a malicious Go package which contains…
8.1
CVSS
5%
EPSS
No
On KEV
Description
In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to directory traversal when executed with the import path of a malicious Go package which contains curly braces (both '{' and '}' characters). 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). The attacker can cause an arbitrary filesystem write, which can lead to code execution.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)5.0% · higher than 92% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BS
Backports Sle · Opensuse
15.0 · source: NVD
DL
Debian Linux · Debian
9.0 · source: NVD
GO
GO · Golang
before 1.10.6; 1.11.0 before 1.11.3 · source: NVD
LE
Leap · Opensuse
15.0; 15.1; 42.3 · source: NVD
LE
Linux Enterprise Server · Suse
12 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-16874
CVE.org
https://www.cve.org/CVERecord?id=CVE-2018-16874
Mailing List
http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00044.html
Mailing List
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00060.html
Mailing List
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00011.html
Mailing List
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00015.html
Mailing List
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00010.html
Mailing List
http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00041.html
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-24061
GNU InetUtils Argument Injection Vulnerability
