CVEfocus › CVE database › CVE-2018-7187

CVE-2018-7187

EPSS 63.0% (in the top 1% of all CVEs)Published 2018-02-16Updated 2024-08-05Assigner: mitre

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.

What to do

Likely to be exploited: EPSS gives a 63% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
5Fix pending
6Will not fix
9Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04golang-1.8Not affected
vulnerable_code_not_present
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2018-7187
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2018-7187
Ubuntu 14.04gccgo-goFix pending
Ubuntu 14.04golangFix pending
Ubuntu 14.04golang-1.6Fix pending
Red Hat Enterprise Linux 8go-toolsetNot affected
Red Hat Enterprise Linux 8golangNot affected
Red Hat Enterprise Linux 8golang-binNot affected
Red Hat Enterprise Linux 8golang-docsNot affected
Red Hat Enterprise Linux 8golang-miscNot affected
Red Hat Enterprise Linux 8golang-raceNot affected
Red Hat Enterprise Linux 8golang-srcNot affected
Red Hat Enterprise Linux 8golang-testsNot affected
Red Hat Enterprise Linux 7golangWill not fix
Will not fix
Red Hat Enterprise Linux 7golang-binWill not fix
Will not fix
Red Hat Enterprise Linux 7golang-docsWill not fix
Will not fix
Red Hat Enterprise Linux 7golang-miscWill not fix
Will not fix
Red Hat Enterprise Linux 7golang-srcWill not fix
Will not fix
Red Hat Enterprise Linux 7golang-testsWill not fix
Will not fix
Go librarytoolchainFixed1.10.1GO-2022-0203

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.