{"id":"UBUNTU-CVE-2018-7187","details":"The \"go get\" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import path (get/vcs.go only checks for \"://\" anywhere in the string), which allows remote attackers to execute arbitrary OS commands via a crafted web site.","modified":"2025-10-24T04:46:56Z","published":"2018-02-16T17:29:00Z","upstream":["CVE-2018-7187"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-7187"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-7187"}],"affected":[{"package":{"name":"golang-1.6","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/golang-1.6@1.6.2-0ubuntu5~16.04.4?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6-0ubuntu1","1.6-0ubuntu2","1.6-0ubuntu3","1.6-0ubuntu4","1.6-0ubuntu5","1.6.1-0ubuntu1","1.6.2-0ubuntu5~16.04","1.6.2-0ubuntu5~16.04.2","1.6.2-0ubuntu5~16.04.3","1.6.2-0ubuntu5~16.04.4"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.2-0ubuntu5~16.04.4","binary_name":"golang-1.6"},{"binary_version":"1.6.2-0ubuntu5~16.04.4","binary_name":"golang-1.6-go"},{"binary_version":"1.6.2-0ubuntu5~16.04.4","binary_name":"golang-1.6-src"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7187.json"}},{"package":{"name":"golang-1.9","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/golang-1.9@1.9.4-1ubuntu1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.1-2ubuntu1","1.9.2-1ubuntu1","1.9.2-3ubuntu1","1.9.3-1ubuntu1","1.9.4-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9.4-1ubuntu1","binary_name":"golang-1.9"},{"binary_version":"1.9.4-1ubuntu1","binary_name":"golang-1.9-go"},{"binary_version":"1.9.4-1ubuntu1","binary_name":"golang-1.9-src"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7187.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}