Bug 1657564 (CVE-2018-16874)
Summary: | CVE-2018-16874 golang: "go get" vulnerable to directory traversal via malicious package | ||
---|---|---|---|
Product: | [Other] Security Response | Reporter: | Sam Fowler <sfowler> |
Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | abhgupta, admiller, amurdaca, dbaker, deparker, jcajka, jjoyce, jokerman, jschluet, lemenkov, lhh, lpeer, mburns, renich, sclewis, security-response-team, sisharma, slinaber, sthangav, trankin |
Target Milestone: | --- | Keywords: | Security |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | golang 1.10.6, golang 1.11.3 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-10-27 03:20:49 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1659289, 1659397, 1659398, 1659906, 1660654, 1660655, 1663370, 1663381, 1664332 | ||
Bug Blocks: | 1657559 |
Description
Sam Fowler
2018-12-10 00:59:49 UTC
In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to directory traversal when executed with the import path of a malicious Go package which contains curly braces (both '{' and '}' characters). 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). The attacker can cause an arbitrary filesystem write, which can lead to code execution. External Reference: https://groups.google.com/forum/?pli=1#!topic/golang-announce/Kw31K8G7Fi0 Upstream Issue: https://golang.org/issue/29231 Acknowledgments: Name: Dmitri Shuralyov (the Go team) Created golang tracking bugs for this issue: Affects: fedora-all [bug 1659289] Created golang tracking bugs for this issue: Affects: epel-all [bug 1664332] Created golang:1.10/golang tracking bugs for this issue: Affects: fedora-all [bug 1663381] Statement: This issue affects the version of golang package in Red Hat Enterprise Linux 7. The golang package, previously available in the Optional channel, will no longer receive updates in Red Hat Enterprise Linux 7. Developers are encouraged to use the Go Toolset instead, which is available through the Red Hat Developer program. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.6_release_notes/chap-red_hat_enterprise_linux-7.6_release_notes-deprecated_functionality_in_rhel7#idm139716309923696 |