GLSA-201803-03 : Go: User-assisted execution of arbitrary code

high Nessus Plugin ID 107201
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201803-03 (Go: User-assisted execution of arbitrary code)

A command injection flaw was discovered in the source code build phase because of the “go get” command, which does not block -fplugin= and
-plugin arguments.
Impact :

A remote attacker could entice a user to process a repository containing maliciously-crafted build instructions using “go get”, resulting in the execution of arbitrary code with the privileges of the process.
Workaround :

There is no known workaround at this time.

Solution

All Go users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-lang/go-1.9.4'

See Also

https://security.gentoo.org/glsa/201803-03

Plugin Details

Severity: High

ID: 107201

File Name: gentoo_GLSA-201803-03.nasl

Version: 1.3

Type: local

Published: 3/8/2018

Updated: 3/4/2019

Dependencies: ssh_get_info.nasl

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Vector: AV:L/AC:L/Au:N/C:P/I:P/A:P

CVSS v3

Risk Factor: High

Base Score: 7.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:go, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 3/7/2018

Vulnerability Publication Date: 2/7/2018

Reference Information

CVE: CVE-2018-6574

GLSA: 201803-03