Description
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 code build, by leveraging the gcc or clang plugin feature, because -fplugin= and -plugin= arguments were not blocked.
CVSS vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 1.8 | Impact: 5.9Attack Vector: Local
Complexity: Low
Privileges: Low
User Interaction: None
Scope: Unchanged
Confidentiality: High
Integrity: High
Availability: High
Affected Packages2 packages
Also affects: Debian Linux 9.0, Enterprise Linux 7.6
🔴Vulnerability Details
4OSVRemote command execution via "go get" command with cgo in cmd/go↗2022-08-09 ▶ GHSAGHSA-c37c-qq99-c897: Go before 1↗2022-05-13 ▶ OSVCVE-2018-6574: Go before 1↗2018-02-07 ▶ CVEListCVE-2018-6574: Go before 1↗2018-02-07 ▶ 📋Vendor Advisories
1Red Hatgolang: arbitrary code execution during "go get" via C compiler options↗2018-02-07 ▶ 💬Community
3BugzillaCVE-2018-6574 golang: arbitrary code execution during "go get" via C compiler options [fedora-all]↗2018-02-08 ▶ BugzillaCVE-2018-6574 golang: arbitrary code execution during "go get" via C compiler options [epel-6]↗2018-02-08 ▶ BugzillaCVE-2018-6574 golang: arbitrary code execution during "go get" via C compiler options↗2018-02-08 ▶