CWE
78
Advisory Published
Updated

CVE-2018-7187: OS Command Injection

First published: Fri Feb 16 2018(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
debian/golang
debian/golang-1.10
debian/golang-1.7
Golang<1.9.5
Golang>=1.10<1.10.1
Debian Linux=7.0
Debian Linux=9.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2018-7187?

    CVE-2018-7187 is classified as a high severity vulnerability due to its potential for remote code execution.

  • How do I fix CVE-2018-7187?

    To mitigate CVE-2018-7187, it is recommended to upgrade Go to version 1.9.5 or later where this vulnerability has been patched.

  • What types of attacks does CVE-2018-7187 allow?

    CVE-2018-7187 allows attackers to execute arbitrary OS commands via a crafted web address when using the 'go get' command with the -insecure option.

  • Which versions of Go are affected by CVE-2018-7187?

    CVE-2018-7187 affects Go versions prior to 1.9.5 and also certain versions in the 1.10 series up to 1.10.1.

  • What is the impact of CVE-2018-7187 on systems using Go?

    The impact of CVE-2018-7187 includes the potential for unauthorized remote command execution, which could compromise the security of affected systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203