Upstream information
Description
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".SUSE information
Overall state of this security issue: Resolved
This issue is currently rated as having important severity.
National Vulnerability Database | |
---|---|
Base Score | 6.8 |
Vector | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Access Vector | Network |
Access Complexity | Medium |
Authentication | None |
Confidentiality Impact | Partial |
Integrity Impact | Partial |
Availability Impact | Partial |
National Vulnerability Database | SUSE | |
---|---|---|
Base Score | 8.1 | 7.5 |
Vector | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Access Vector | Network | Network |
Access Complexity | High | High |
Privileges Required | None | None |
User Interaction | None | Required |
Scope | Unchanged | Unchanged |
Confidentiality Impact | High | High |
Integrity Impact | High | High |
Availability Impact | High | High |
CVSSv3 Version | 3 | 3.1 |
Note from the SUSE Security Team
This problem only affects the go commandline tool, but no programs built with go. SUSE Bugzilla entries: 1118897 [RESOLVED / FIXED], 1118898 [RESOLVED / FIXED], 1118899 [RESOLVED / FIXED] SUSE Security Advisories:- SUSE-SU-2018:4218-1, published Fri Dec 21 10:09:53 MST 2018
- SUSE-SU-2018:4297-1, published Fri Dec 28 16:11:39 MST 2018
- SUSE-SU-2019:0048-1, published Wed Jan 9 13:12:58 MST 2019
- SUSE-SU-2019:0048-2, published Thu Jul 4 10:11:31 MDT 2019
- SUSE-SU-2019:0286-1, published Thu Feb 7 10:09:42 MST 2019
- SUSE-SU-2019:0330-1, published Tue Feb 12 04:10:29 MST 2019
- SUSE-SU-2019:0495-1, published Tue Feb 26 13:10:41 MST 2019
- SUSE-SU-2019:0573-1, published Fri Mar 8 10:09:22 MST 2019
- SUSE-SU-2019:1234-1, published Tue May 14 16:39:01 MDT 2019
- SUSE-SU-2019:1234-2, published Thu Jun 13 13:11:46 MDT 2019
- SUSE-SU-2019:1264-1, published Thu May 16 07:40:31 MDT 2019
- openSUSE-SU-2018:4181-1, published Wed, 19 Dec 2018 12:09:04 +0100 (CET)
- openSUSE-SU-2018:4255-1, published Sun, 23 Dec 2018 00:08:46 +0100 (CET)
- openSUSE-SU-2018:4306-1, published Sat, 29 Dec 2018 15:14:16 +0100 (CET)
- openSUSE-SU-2019:0170-1, published Wed, 13 Feb 2019 21:09:10 +0100 (CET)
- openSUSE-SU-2019:0189-1, published Sat, 16 Feb 2019 12:10:46 +0100 (CET)
- openSUSE-SU-2019:0208-1, published Tue, 19 Feb 2019 15:14:14 +0100 (CET)
- openSUSE-SU-2019:0295-1, published Wed, 6 Mar 2019 21:10:52 +0100 (CET)
- openSUSE-SU-2019:1079-1, published Sat, 30 Mar 2019 00:20:25 +0100 (CET)
- openSUSE-SU-2019:1444-1, published Mon, 27 May 2019 12:11:28 +0200 (CEST)
- openSUSE-SU-2019:1499-1, published Mon, 3 Jun 2019 15:12:25 +0200 (CEST)
- openSUSE-SU-2019:1506-1, published Mon, 3 Jun 2019 18:11:12 +0200 (CEST)
- openSUSE-SU-2019:1703-1, published Sun, 14 Jul 2019 12:10:42 +0200 (CEST)
- openSUSE-SU-2020:0554-1, published Sun, 26 Apr 2020 21:14:09 +0200 (CEST)
List of released packages
Product(s) | Fixed package version(s) | References |
---|---|---|
Image SLES15-EC2-CHOST-HVM-BYOS |
| |
Image SLES15-SP1-CHOST-BYOS-Azure Image SLES15-SP1-CHOST-BYOS-EC2 Image SLES15-SP1-CHOST-BYOS-GCE Image SLES15-SP2-CHOST-BYOS-Ali Image SLES15-SP2-CHOST-BYOS-Azure Image SLES15-SP2-CHOST-BYOS-EC2 Image SLES15-SP2-CHOST-BYOS-GCE Image SLES15-SP2-CHOST-BYOS-OpenStack |
| |
Openstack Cloud Magnum Orchestration 7 |
| Patchnames: SUSE-OpenStack-Cloud-Magnum-Orchestration-7-2019-1264 |
SUSE CaaS Platform 3.0 |
| Patchnames: SUSE-CAASP-3.0-2018-3026 SUSE-CAASP-3.0-2019-1264 SUSE-CAASP-3.0-2019-330 |
SUSE Linux Enterprise Module for Containers 12 |
| Patchnames: SUSE-SLE-Module-Containers-12-2019-1264 SUSE-SLE-Module-Containers-12-2019-573 |
SUSE Linux Enterprise Module for Containers 15 SP1 |
| Patchnames: SUSE-SLE-Module-Containers-15-SP1-2019-1234 SUSE-SLE-Module-Containers-15-SP1-2019-48 |
SUSE Linux Enterprise Module for Containers 15 SP2 |
| |
SUSE Linux Enterprise Module for Containers 15 |
| Patchnames: SUSE-SLE-Module-Containers-15-2018-3064 SUSE-SLE-Module-Containers-15-2019-1234 SUSE-SLE-Module-Containers-15-2019-286 SUSE-SLE-Module-Containers-15-2019-48 SUSE-SLE-Module-Containers-15-2019-495 |
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 SP1 |
| Patchnames: SUSE-SLE-Module-Development-Tools-OBS-15-SP1-2019-1234 |
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 |
| Patchnames: SUSE-SLE-Module-Development-Tools-OBS-15-2018-3064 SUSE-SLE-Module-Development-Tools-OBS-15-2019-1234 SUSE-SLE-Module-Development-Tools-OBS-15-2019-286 SUSE-SLE-Module-Development-Tools-OBS-15-2019-495 |
SUSE OpenStack Cloud 6-LTSS |
| Patchnames: SUSE-OpenStack-Cloud-6-LTSS-2019-573 |
SUSE Package Hub for SUSE Linux Enterprise 12 SP3 |
| Patchnames: openSUSE-2019-1703 |
SUSE Package Hub for SUSE Linux Enterprise 15 |
| Patchnames: openSUSE-2019-1506 openSUSE-2019-170 |
openSUSE Leap 15.0 |
| Patchnames: openSUSE-2019-1018 openSUSE-2019-1044 openSUSE-2019-1499 openSUSE-2019-189 openSUSE-2019-208 openSUSE-2019-295 |
openSUSE Leap 15.1 |
| Patchnames: openSUSE-2019-1444 openSUSE-2020-554 |
openSUSE Leap 42.3 |
| Patchnames: openSUSE-2018-1593 openSUSE-2019-1018 openSUSE-2019-1079 |
Status of this issue by product and package
Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification.
Product(s) | Source package | State |
---|---|---|
Magnum Orchestration | containerd | Released |
SUSE CaaS Platform 3.0 | containerd | Released |
SUSE CaaS Platform 4.0 | caasp-release | Released |
SUSE CaaS Platform 4.0 | conmon | Released |
SUSE CaaS Platform 4.0 | cri-o | Released |
SUSE CaaS Platform 4.0 | cri-tools | Released |
SUSE CaaS Platform 4.0 | etcd | Released |
SUSE CaaS Platform 4.0 | helm | Released |
SUSE CaaS Platform 4.0 | helm-mirror | Released |
SUSE CaaS Platform 4.0 | kubernetes | Released |
SUSE CaaS Platform 4.0 | patterns-caasp-Node-1.15-1.16 | Released |
SUSE CaaS Platform 4.0 | patterns-caasp-Node-1.16 | Released |
SUSE CaaS Platform 4.0 | release-notes-caasp | Released |
SUSE CaaS Platform 4.0 | runc | Released |
SUSE CaaS Platform 4.0 | skuba | Released |
SUSE Enterprise Storage 6 | helm-mirror | Released |
SUSE Enterprise Storage 6 | runc | Released |
SUSE Linux Enterprise 12 Module for Containers | containerd | Released |
SUSE Linux Enterprise 12 Module for Containers | docker | Released |
SUSE Linux Enterprise 12 Module for Containers | docker-runc | Released |
SUSE Linux Enterprise 12 Module for Containers | golang-github-docker-libnetwork | Released |
SUSE Linux Enterprise 15 Module for Containers | containerd | Released |
SUSE Linux Enterprise 15-SP1 Module for Containers | containerd | Released |
SUSE Linux Enterprise 15-SP1 Module for Containers | docker | Released |
SUSE Linux Enterprise 15-SP1 Module for Containers | docker-runc | Released |
SUSE Linux Enterprise 15-SP1 Module for Containers | golang-github-docker-libnetwork | Released |
SUSE Linux Enterprise 15-SP1 Module for Containers | helm-mirror | Released |
SUSE Linux Enterprise 15-SP1 Module for Containers | kubernetes | Released |
SUSE Linux Enterprise 15-SP1 Module for Containers | runc | Released |
SUSE Linux Enterprise 15-SP2 Module for Containers | containerd | Released |
SUSE Linux Enterprise 15-SP2 Module for Containers | docker | Released |
SUSE Linux Enterprise 15-SP2 Module for Containers | docker-runc | Released |
SUSE Linux Enterprise 15-SP2 Module for Containers | golang-github-docker-libnetwork | Released |
SUSE Linux Enterprise 15-SP2 Module for Containers | helm-mirror | Released |
SUSE Linux Enterprise 15-SP2 Module for Containers | runc | Released |
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS | helm-mirror | Released |
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS | runc | Released |
SUSE Linux Enterprise Server 15 SP1 Business Critical Linux | helm-mirror | Released |
SUSE Linux Enterprise Server 15 SP1 Business Critical Linux | runc | Released |
SUSE Linux Enterprise Server 15 SP1 LTSS | helm-mirror | Released |
SUSE Linux Enterprise Server 15 SP1 LTSS | runc | Released |
SUSE Linux Enterprise Server for SAP Applications 15 SP1 | helm-mirror | Released |
SUSE Linux Enterprise Server for SAP Applications 15 SP1 | runc | Released |
SUSE Manager Proxy 4.0 | helm-mirror | Released |
SUSE Manager Proxy 4.0 | runc | Released |
SUSE Manager Retail Branch Server 4.0 | helm-mirror | Released |
SUSE Manager Retail Branch Server 4.0 | runc | Released |
SUSE Manager Server 4.0 | helm-mirror | Released |
SUSE Manager Server 4.0 | runc | Released |
SUSE OpenStack Cloud 6 LTSS | containerd | Released |