golang: arbitrary code execution during "go get" or "go get -d"
Published Oct 5, 2017
9.8
CRITICALCVSS 3.1
EPSS 8.94%
Description
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."
Affected products
No data.
Configuration 2
- 9.0
Configuration 3
- 1.0
- 7.6
- 7.7
- 7.0
- 7.6
- 7.7
- 7.6
- 7.7
No data.
Red Hat Developer Tools
go-toolset-7-0:1.8-10.el7
Fixed · RHSA-2017:3463
Red Hat Developer Tools
go-toolset-7-golang-0:1.8.5-1.el7
Fixed · RHSA-2017:3463
Red Hat Enterprise Linux 7
golang-0:1.9.4-1.el7
Fixed · RHSA-2018:0878
Red Hat OpenShift Enterprise 3
golang
Affected
Red Hat OpenStack Platform 8 (Liberty) Operational Tools
golang
Will not fix
Red Hat OpenStack Platform 9 (Mitaka) Operational Tools
golang
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Developer Tools | go-toolset-7-0:1.8-10.el7 | Fixed | RHSA-2017:3463 |
| Red Hat Developer Tools | go-toolset-7-golang-0:1.8.5-1.el7 | Fixed | RHSA-2017:3463 |
| Red Hat Enterprise Linux 7 | golang-0:1.9.4-1.el7 | Fixed | RHSA-2018:0878 |
| Red Hat OpenShift Enterprise 3 | golang | Affected | n/a |
| Red Hat OpenStack Platform 8 (Liberty) Operational Tools | golang | Will not fix | n/a |
| Red Hat OpenStack Platform 9 (Mitaka) Operational Tools | golang | Will not fix | n/a |
toolchain
Go
Introduced 0 Fixed 1.8.4toolchain
Go
Introduced 1.9.0-0 Fixed 1.9.1
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | toolchain | 0 | 1.8.4 |
| Go | toolchain | 1.9.0-0 | 1.9.1 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (25 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 8.94% (0.08944) | 95.10th | v5 (v2026.06.15) |
| Jun 15, 2026 | 8.94% (0.08944) | 94.56th | v5 (v2026.06.15) |
| Jun 8, 2026 | 2.85% (0.02846) | 86.50th | v4 (v2025.03.14) |
| Apr 12, 2026 | 4.13% (0.04128) | 88.64th | v4 (v2025.03.14) |
| Jan 30, 2026 | 7.17% (0.07170) | 91.35th | v4 (v2025.03.14) |
| Dec 4, 2025 | 5.55% (0.05551) | 89.92th | v4 (v2025.03.14) |
| Nov 26, 2025 | 7.35% (0.07352) | 91.32th | v4 (v2025.03.14) |
| Mar 30, 2025 | 6.32% (0.06321) | 90.02th | v4 (v2025.03.14) |
| Mar 29, 2025 | 13.97% (0.13972) | 90.56th | v4 (v2025.03.14) |
| Mar 17, 2025 | 6.32% (0.06321) | 90.27th | v4 (v2025.03.14) |
| Dec 17, 2024 | 6.49% (0.06493) | 93.65th | v3 (v2023.03.01) |
| Dec 1, 2023 | 5.53% (0.05532) | 92.42th | v3 (v2023.03.01) |
| Sep 15, 2023 | 3.98% (0.03982) | 90.97th | v3 (v2023.03.01) |
| Aug 15, 2023 | 3.85% (0.03848) | 90.75th | v3 (v2023.03.01) |
| May 8, 2023 | 3.65% (0.03651) | 90.31th | v3 (v2023.03.01) |
| Apr 7, 2023 | 4.27% (0.04274) | 91.00th | v3 (v2023.03.01) |
| Mar 7, 2023 | 3.70% (0.03702) | 90.34th | v3 (v2023.03.01) |
| Mar 6, 2023 | 10.05% (0.10052) | 94.55th | v2 (v2022.01.01) |
| Jul 2, 2022 | 10.05% (0.10052) | 94.20th | v2 (v2022.01.01) |
| Apr 1, 2022 | 9.80% (0.09801) | 93.83th | v2 (v2022.01.01) |
| Feb 4, 2022 | 9.80% (0.09801) | 87.26th | v2 (v2022.01.01) |
| Feb 3, 2022 | 4.91% (0.04905) | 78.21th | v1 |
| Jan 6, 2022 | 4.91% (0.04905) | 77.99th | v1 |
| Sep 1, 2021 | 4.91% (0.04905) | 87.49th | v1 |
| Apr 14, 2021 | 4.91% (0.04905) | 0.00th | v1 |
No CWE recorded.
References (14)
- http://www.securityfocus.com/bid/101196 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:3463 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0878 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-15041 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1498870 Issue Tracking
- https://github.com/golang/go/issues/22125 x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://golang.org/cl/68022 x_refsource_CONFIRMIssue TrackingPatchVendor Advisory
- https://golang.org/cl/68190 x_refsource_CONFIRMIssue TrackingPatchVendor Advisory
- https://groups.google.com/d/msg/golang-dev/RinSE3EiJBI/kYL7zb07AgAJ x_refsource_CONFIRMMailing ListVendor Advisory
- https://lists.debian.org/debian-lts-announce/2021/03/msg00014.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/03/msg00015.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-15041
- https://security.gentoo.org/glsa/201710-23 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-15041
Change history (0)
No recorded changes yet.