CVE-2017-15041 Affecting golang-tests package, versions <0:1.9.4-1.amzn2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
5.53% (94th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-GOLANGTESTS-1662742
  • published27 Sept 2021
  • disclosed5 Oct 2017

Introduced: 5 Oct 2017

CVE-2017-15041  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 golang-tests to version 0:1.9.4-1.amzn2 or higher.
This issue was patched in ALAS2-2018-1011.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-tests package and not the golang-tests package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution. Using custom domains, it is possible to arrange things so that example.com/pkg1 points to a Subversion repository but example.com/pkg1/pkg2 points to a Git repository. If the Subversion repository includes a Git checkout in its pkg2 directory and some other work is done to ensure the proper ordering of operations, "go get" can be tricked into reusing this Git checkout for the fetch of code from pkg2. If the Subversion repository's Git checkout has malicious commands in .git/hooks/, they will execute on the system running "go get."

CVSS Scores

version 3.1