{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2018-16874","published":"2018-12-14T14:29:00.427000Z","last_modified":"2026-06-17T01:44:57.967000Z","status":"Modified","cvss":{"version":"3.1","score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-20","CWE-22"],"cpes":[{"criteria":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","part":"a","vendor":"golang","product":"go","version_end_excluding":"1.10.6"},{"criteria":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","part":"a","vendor":"golang","product":"go","version_start_including":"1.11.0","version_end_excluding":"1.11.3"},{"criteria":"cpe:2.3:a:opensuse:backports_sle:15.0:-:*:*:*:*:*:*","part":"a","vendor":"opensuse","product":"backports_sle","version":"15.0"},{"criteria":"cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*","part":"o","vendor":"opensuse","product":"leap","version":"15.0"},{"criteria":"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*","part":"o","vendor":"opensuse","product":"leap","version":"15.1"},{"criteria":"cpe:2.3:o:opensuse:leap:42.3:*:*:*:*:*:*:*","part":"o","vendor":"opensuse","product":"leap","version":"42.3"},{"criteria":"cpe:2.3:o:suse:linux_enterprise_server:12:-:*:*:*:*:*:*","part":"o","vendor":"suse","product":"linux_enterprise_server","version":"12"},{"criteria":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"9.0"}],"cpes_truncated":false,"vendors":["golang","opensuse","suse","debian"],"products":["golang/go","opensuse/backports_sle","opensuse/leap","suse/linux_enterprise_server","debian/debian_linux"],"epss":{"score":0.05017,"percentile":0.93036,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GO-2022-0190","ecosystem":"Go","name":"toolchain","purl":"pkg:golang/toolchain","ranges":[{"introduced":"0","fixed":"1.10.6"},{"introduced":"1.11.0-0","fixed":"1.11.3"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":64,"links":{"html_es":"/es/cve/CVE-2018-16874/","html_en":"/en/cve/CVE-2018-16874/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-16874","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-16874"},"untrusted":{"vendor_name":"Golang","product_name":"Go","desc_en":"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.","affected":[{"untrusted_vendor":"[UNKNOWN]","untrusted_product":"golang","versions":[]}],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00044.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00060.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00011.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00015.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00010.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00041.html","tags":["Mailing List","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/106228","tags":["Third Party Advisory","VDB Entry"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16874","tags":["Issue Tracking","Third Party Advisory"]},{"url":"https://groups.google.com/forum/?pli=1#%21topic/golang-announce/Kw31K8G7Fi0","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00014.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00015.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201812-09","tags":["Mitigation","Third Party Advisory"]}]}}