Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution.
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 4 fixed, 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
Summary
Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution. Using custom domains, it is possible to arrange things so that example.com/pkg1 points to a Subversion repository but example.com/pkg1/pkg2 points to a Git repository. If the Subversion repository includes a Git checkout in its pkg2 directory and some other work is done to ensure the proper ordering of operations, "go get" can be tricked into reusing this Git checkout for the fetch of code from pkg2. If the Subversion repository's Git checkout has malicious commands in .git/hooks/, they will execute on the system running "go get."
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 11
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* | up to 1.8.3 | Vulnerable | Go standard library |
| cpe:2.3:a:golang:go:1.9:-:*:*:*:*:*:* | 1.9 | Vulnerable | Go standard library |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:a:redhat:developer_tools:1.0:*:*:*:*:*:*:* | 1.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_eus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_eus:7.7:*:*:*:*:*:*:* | 7.7 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.7:*:*:*:*:*:*:* | 7.7 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_tus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* Versions up to 1.8.3 Vulnerable ·Go standard library
- cpe:2.3:a:golang:go:1.9:-:*:*:*:*:*:* Versions 1.9 Vulnerable ·Go standard library
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:a:redhat:developer_tools:1.0:*:*:*:*:*:*:* Versions 1.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_eus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_eus:7.7:*:*:*:*:*:*:* Versions 7.7 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.7:*:*:*:*:*:*:* Versions 7.7 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_tus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
Remediation
Red Hat 2 advisories
- RHSA-2018:0878 Released 2018-04-10 · Red Hat rating Moderategolang security, bug fix, and enhancement update
- Red Hat Enterprise Linux Server Optional (v. 7) golang-1.9.4-1.el7, golang-bin-1.9.4-1.el7, golang-docs-1.9.4-1.el7 +3
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) golang-1.9.4-1.el7, golang-bin-1.9.4-1.el7, golang-docs-1.9.4-1.el7 +3
- RHSA-2017:3463 Released 2017-12-14 · Red Hat rating Moderatego-toolset-7 and go-toolset-7-golang security and bug fix update
- Red Hat Developer Tools for Red Hat Enterprise Linux Server (v. 7) go-toolset-7-1.8-10.el7, go-toolset-7-build-1.8-10.el7, go-toolset-7-dockerfiles-1.8-10.el7 +9
- Red Hat Developer Tools for Red Hat Enterprise Linux Workstation (v. 7) go-toolset-7-1.8-10.el7, go-toolset-7-build-1.8-10.el7, go-toolset-7-dockerfiles-1.8-10.el7 +9
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift Enterprise 3 | Affected | No fix yet |
| Red Hat OpenStack Platform 8 (Liberty) Operational Tools | Affected | No fix planned: Will not fix |
| Red Hat OpenStack Platform 9 (Mitaka) Operational Tools | Affected | No fix planned: Will not fix |
| Red Hat Developer Tools for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2017:3463 |
| Red Hat Developer Tools for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2017:3463 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2018:0878 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2018:0878 |
Timeline
- 2026-10-02 Threatist record created from CVE-2017-15041
- 2026-10-03 Alias added: GHSA-2w49-qg9p-7jxx
References
Patch 3
Sources
- CVE-2017-15041 · CVE Program
- CVE-2017-15041 · NVD
- FIRST EPSS
- GHSA-2w49-qg9p-7jxx · GitHub Advisory Database · CC BY 4.0
- CVE-2017-15041 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences