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…
Noroxi assessment
Priority: Plan (action score 52/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 66.2% (FIRST EPSS); higher than 99.2% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. Special conditions such as timing or configuration are required.
- Fixed version: golang-1.7 (Debian:9) 1.7.4-2+deb9u3; golang-1.8 (Debian:9) 1.8.1-1+deb9u3; toolchain (Go) 1.11.3, 1.10.6.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Add it to your regular patch cycle. Upgrade to golang-1.7 (Debian:9) 1.7.4-2+deb9u3; golang-1.8 (Debian:9) 1.8.1-1+deb9u3; toolchain (Go) 1.11.3, 1.10.6 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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".
- BDU:2020-01887
- DLA-2591-1
- DLA-2592-1
- GO-2022-0189
- openSUSE-SU-2019:0170-1
- openSUSE-SU-2019:1444-1
- openSUSE-SU-2019:1499-1
- openSUSE-SU-2019:1506-1
- openSUSE-SU-2019:1703-1
- openSUSE-SU-2020:0554-1
- openSUSE-SU-2024:10693-1
- openSUSE-SU-2024:10699-1
- openSUSE-SU-2024:10722-1
- openSUSE-SU-2024:10741-1
- openSUSE-SU-2024:10761-1
- openSUSE-SU-2024:10802-1
- openSUSE-SU-2024:10803-1
- openSUSE-SU-2024:10804-1
- openSUSE-SU-2024:10805-1
- openSUSE-SU-2024:10841-1
- Published
- Dec 14, 2018
- Updated
- Jun 16, 2026
- EPSS
- 66.2% · 99th percentile
- CWE
- CWE-20
Report tools
Action score
52
Add it to your regular patch cycle.
- CVSS
- 32 / 40 · 8.1 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 20 / 30 · 66.2%
CNA vs NVD score
- NVD
- 8.1
- CNA · redhat
- 7.5
- 0.6 point gap
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| golang | go | cpe:2.3:a:golang:go |
| opensuse | backports sle | cpe:2.3:a:opensuse:backports_sle |
| opensuse | leap | cpe:2.3:o:opensuse:leap |
| suse | linux enterprise server | cpe:2.3:o:suse:linux_enterprise_server |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
[UNKNOWN] golang
- 1.10.6, 1.11.3affected
Affected versions · NVD (8)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux9.0
- golang go1.11.0 and later · before 1.11.3
- golang gobefore 1.10.6
- opensuse backports sle15.0
- opensuse leap15.0
- opensuse leap15.1
- opensuse leap42.3
- suse linux enterprise server12
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:9 | golang-1.7 | before 1.7.4-2+deb9u3 | 1.7.4-2+deb9u3 |
| Debian:9 | golang-1.8 | before 1.8.1-1+deb9u3 | 1.8.1-1+deb9u3 |
| Go | toolchain | from 1.11.0-0 · before 1.11.3 | 1.11.3 |
| Go | toolchain | before 1.10.6 | 1.10.6 |
| openSUSE:Leap 15.0 | containerd | before 1.2.5-lp150.4.14.3 | 1.2.5-lp150.4.14.3 |
| openSUSE:Leap 15.0 | docker | before 18.09.6_ce-lp150.5.17.2 | 18.09.6_ce-lp150.5.17.2 |
| openSUSE:Leap 15.0 | docker-runc | before 1.0.0rc6+gitr3804_2b18fe1d885e-lp150.5.21.2 | 1.0.0rc6+gitr3804_2b18fe1d885e-lp150.5.21.2 |
| openSUSE:Leap 15.0 | go | before 1.12-lp150.2.11.1 | 1.12-lp150.2.11.1 |
| openSUSE:Leap 15.0 | go1.11 | before 1.11.9-lp150.9.3 | 1.11.9-lp150.9.3 |
| openSUSE:Leap 15.0 | go1.12 | before 1.12.4-lp150.2.2 | 1.12.4-lp150.2.2 |
| openSUSE:Leap 15.0 | golang-github-docker-libnetwork | before 0.7.0.1+gitr2726_872f0a83c98a-lp150.3.14.1 | 0.7.0.1+gitr2726_872f0a83c98a-lp150.3.14.1 |
| openSUSE:Leap 15.1 | containerd | before 1.2.5-lp151.2.3.1 | 1.2.5-lp151.2.3.1 |
| openSUSE:Leap 15.1 | cri-o | before 1.17.1-lp151.2.2 | 1.17.1-lp151.2.2 |
| openSUSE:Leap 15.1 | cri-tools | before 1.18.0-lp151.2.1 | 1.18.0-lp151.2.1 |
| openSUSE:Leap 15.1 | docker | before 18.09.6_ce-lp151.2.3.1 | 18.09.6_ce-lp151.2.3.1 |
| openSUSE:Leap 15.1 | docker-runc | before 1.0.0rc6+gitr3804_2b18fe1d885e-lp151.3.3.1 | 1.0.0rc6+gitr3804_2b18fe1d885e-lp151.3.3.1 |
| openSUSE:Leap 15.1 | go | before 1.12-lp151.2.3.1 | 1.12-lp151.2.3.1 |
| openSUSE:Leap 15.1 | go1.11 | before 1.11.9-lp151.2.3.1 | 1.11.9-lp151.2.3.1 |
| openSUSE:Leap 15.1 | go1.12 | before 1.12.4-lp151.2.3.1 | 1.12.4-lp151.2.3.1 |
| openSUSE:Leap 15.1 | go1.14 | before 1.14-lp151.6.1 | 1.14-lp151.6.1 |
| openSUSE:Leap 15.1 | golang-github-docker-libnetwork | before 0.7.0.1+gitr2726_872f0a83c98a-lp151.2.3.1 | 0.7.0.1+gitr2726_872f0a83c98a-lp151.2.3.1 |
| openSUSE:Leap 15.1 | kubernetes | before 1.18.0-lp151.5.1 | 1.18.0-lp151.5.1 |
| openSUSE:Leap 15.5 | etcd | before 3.5.12-150000.7.6.1 | 3.5.12-150000.7.6.1 |
| openSUSE:Tumbleweed | containerd | before 1.4.8-2.2 | 1.4.8-2.2 |
+43
Same product
golang: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-7187The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import path (get/vcs.go only…54Plan
- CVE-2021-38297Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a function invocation from a WASM module, when…42Plan
- CVE-2019-14809net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization bypass in some…42Plan
Published before and after this one in the same product
- ← EarlierCVE-2015-5740Oct 18, 2017 · The net/http library in net/http/transfer.go in Go before 1.4.3 does not properly parse HTTP headers, which allows remote attackers to…40Plan
- ← EarlierCVE-2018-6574Feb 7, 2018 · Go before 1.8.7, Go 1.9.x before 1.9.4, and Go 1.10 pre-releases before Go 1.10rc2 allow "go get" remote command execution during source…33Monitor
- Later →CVE-2018-16874Dec 14, 2018 · 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…34Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:golang-1.7 | 1.7.4-2+deb9u3 · Debian:9 | Package registry (OSV) |
| debian:golang-1.8 | 1.8.1-1+deb9u3 · Debian:9 | Package registry (OSV) |
| Go:toolchain | 1.10.6 | Package registry (OSV) |
| Go:toolchain | 1.11.3 | Package registry (OSV) |
| opensuse:containerd | 1.2.5-lp151.2.3.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:cri-o | 1.17.1-lp151.2.2 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:cri-tools | 1.18.0-lp151.2.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:docker | 18.09.6_ce-lp151.2.3.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:docker-runc | 1.0.0rc6+gitr3804_2b18fe1d885e-lp151.3.3.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:etcd | 3.5.12-150000.7.6.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:go | 1.12-lp151.2.3.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:go1.11 | 1.11.9-lp151.2.3.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:go1.12 | 1.12.4-lp151.2.3.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:go1.14 | 1.14-lp151.6.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:golang-github-docker-libnetwork | 0.7.0.1+gitr2726_872f0a83c98a-lp151.2.3.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:kubernetes | 1.18.0-lp151.5.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| suse:containerd | 1.1.2-5.3.4 · SUSE:Linux Enterprise Module for Containers 15 | Package registry (OSV) |
| suse:docker | 18.06.1_ce-6.8.2 · SUSE:Linux Enterprise Module for Containers 15 | Package registry (OSV) |
| suse:docker-runc | 1.0.0rc5+gitr3562_69663f0bd4b6-6.3.4 · SUSE:Linux Enterprise Module for Containers 15 | Package registry (OSV) |
| suse:go | 1.12-bp150.2.6.1 · SUSE:Package Hub 15 | Package registry (OSV) |
| suse:golang-github-docker-libnetwork | 0.7.0.1+gitr2664_3ac297bc7fd0-4.3.5 · SUSE:Linux Enterprise Module for Containers 15 | Package registry (OSV) |
| suse:helm | 2.13.1-5.1 · SUSE:Package Hub 12 SP3 | Package registry (OSV) |
| suse:helm-mirror | 0.2.1-1.7.1 · SUSE:Linux Enterprise Module for Containers 15 | Package registry (OSV) |
| suse:runc | 1.0.0~rc93-16.8.1 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-20-273 · Apr 27, 2020(Kubernetes Zafiyeti)
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (11 more)Show less
- lists.opensuse.org/opensuse-security-announce/2019-05/msg00060.html
- lists.opensuse.org/opensuse-security-announce/2019-06/msg00011.html
- lists.opensuse.org/opensuse-security-announce/2019-06/msg00015.html
- lists.opensuse.org/opensuse-security-announce/2019-07/msg00010.html
- lists.opensuse.org/opensuse-security-announce/2020-04/msg00041.html
- www.securityfocus.com/bid/106226
- bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16873
- groups.google.com/forum/?pli=1#%21topic/golang-announce/Kw31K8G7Fi0
- lists.debian.org/debian-lts-announce/2021/03/msg00014.html
- lists.debian.org/debian-lts-announce/2021/03/msg00015.html
- security.gentoo.org/glsa/201812-09
Vendor advisories and official records. Exploit/PoC links are deliberately left out.